Skip to content

Instantly share code, notes, and snippets.

@mdipierro
Created October 24, 2020 17:27
Show Gist options
  • Save mdipierro/4d9d3704e6ba542bb3f8d34c925b051d to your computer and use it in GitHub Desktop.
Save mdipierro/4d9d3704e6ba542bb3f8d34c925b051d to your computer and use it in GitHub Desktop.
import jwt
jwt_data = jwt.decode(some_data, secret)
form = Form(.... hidden=dict(mydata=jwt_data))
if form.accepted:
some_data = jwt.decode(request.forms['mydata'], secret)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment