tokens
routes.utils.tokens
SECRET_KEY_TOKEN
module-attribute
SECRET_KEY_TOKEN = token_hex(256)
SECRET_KEY_TOKEN_REFRESH
module-attribute
SECRET_KEY_TOKEN_REFRESH = token_hex(256)
decode_auth_token
decode_auth_token(token, is_refresh=False)
Function decoding the token
Source code in yaptide/routes/utils/tokens.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
encode_auth_token
encode_auth_token(
user_id, is_refresh=False, is_keycloak=False
)
Function encoding the token
Source code in yaptide/routes/utils/tokens.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|