security
decode_token(token)
¶
Decode a JSON Web Token (JWT).
This function takes a JSON Web Token (JWT) string and decodes it using the specified secret and algorithm. The decoded token data is returned, allowing further processing or validation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str
|
The JWT string to decode. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Decoded token data. |