net.token
¶
Module Contents¶
Functions¶
|
Get payload from a JSON Web Token. |
|
Return true if the token is still valid, false otherwise. |
- net.token.get_payload(token: str) dict ¶
Get payload from a JSON Web Token.
- Parameters:
token – token
- Returns:
decoded payload
- net.token.is_valid(token: str) bool ¶
Return true if the token is still valid, false otherwise.
- Parameters:
token – full token
- Returns:
return true if the token is still valid, false otherwise