Retrieve the payload from an authentication token.
| Parameters: |
-
token
(str)
–
The authentication token from which to extract the payload.
-
options
(dict[str, bool] | None, default:
None
)
–
A dictionary of options to customize the decoding behavior, such as
enabling or disabling signature verification.
|
| Returns: |
-
dict[str, str]
–
A dictionary containing the payload data extracted from the
token.
|
Source code in src/alpha/interfaces/token_factory.py
| def get_payload(
self, token: str, options: dict[str, bool] | None = None
) -> dict[str, str]:
"""Retrieve the payload from an authentication token.
Parameters
----------
token
The authentication token from which to extract the payload.
options
A dictionary of options to customize the decoding behavior, such as
enabling or disabling signature verification.
Returns
-------
dict[str, str]
A dictionary containing the payload data extracted from the
token.
"""
...
|