Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7e4078

Browse files
committed
Update method documentation for new return type
1 parent 6641d0d commit d7e4078

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

auth0/v3/authentication/token_verifier.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ def verify(self, token, nonce=None, max_age=None, organization=None):
229229
organization (str, optional): The expected organization ID (org_id) claim value. This should be specified
230230
when logging in to an organization.
231231
232+
Returns:
233+
the decoded payload from the token
234+
232235
Raises:
233236
TokenValidationError: when the token cannot be decoded, the token signing algorithm is not the expected one,
234237
the token signature is invalid or the token has a claim missing or with unexpected value.
@@ -243,7 +246,7 @@ def verify(self, token, nonce=None, max_age=None, organization=None):
243246

244247
# Verify claims
245248
self._verify_payload(payload, nonce, max_age, organization)
246-
249+
247250
return payload
248251

249252
def _verify_payload(self, payload, nonce=None, max_age=None, organization=None):

0 commit comments

Comments
 (0)