Gets the JWT from the client cookie. :return: String representing the refresh token
()
| 52 | |
| 53 | |
| 54 | def get_decoded_refresh_token_from_session() -> str or None: |
| 55 | """ |
| 56 | Gets the JWT from the client cookie. |
| 57 | :return: String representing the refresh token |
| 58 | """ |
| 59 | |
| 60 | jwt_token = login_session.get('refresh_token') |
| 61 | if type(jwt_token) == str: |
| 62 | return jwt_token |
| 63 | if jwt_token is None: |
| 64 | return None |
| 65 | token_string = gzip.decompress(jwt_token).decode() |
| 66 | return token_string |
| 67 | |
| 68 | |
| 69 | def get_decoded_id_token_from_session() -> str or None: |
no test coverage detected