You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a v4 Local token, how do I validate the nonce when decoding?
my_key = secrets.token_bytes(32)
my_nonce = secrets.token_bytes(32)
data = json.dumps({"hello": "world"})
key = Key.new(version=4, purpose="local", key=my_key)
token = pyseto.encode(
key,
payload=data.encode("utf-8"),
nonce=my_nonce,
serializer=json
)
decoded = pyseto.decode(key, token)
-> How do I know what nonce was used here <-
Whether I provide my own nonce or allow one to be created for me by default, I can not see any property or method at the decode step
The text was updated successfully, but these errors were encountered:
When using a v4 Local token, how do I validate the nonce when decoding?
Whether I provide my own nonce or allow one to be created for me by default, I can not see any property or method at the decode step
The text was updated successfully, but these errors were encountered: