MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / decode_jwt

Function decode_jwt

fastapi_users/jwt.py:30–41  ·  view source on GitHub ↗
(
    encoded_jwt: str,
    secret: SecretType,
    audience: list[str],
    algorithms: list[str] = [JWT_ALGORITHM],
)

Source from the content-addressed store, hash-verified

28
29
30def decode_jwt(
31 encoded_jwt: str,
32 secret: SecretType,
33 audience: list[str],
34 algorithms: list[str] = [JWT_ALGORITHM],
35) -> dict[str, Any]:
36 return jwt.decode(
37 encoded_jwt,
38 _get_secret_value(secret),
39 audience=audience,
40 algorithms=algorithms,
41 )

Callers 8

verifyMethod · 0.90
reset_passwordMethod · 0.90
read_tokenMethod · 0.90
callbackFunction · 0.90
test_write_tokenFunction · 0.90
test_generate_decode_jwtFunction · 0.90
test_user_activeMethod · 0.90

Calls 1

_get_secret_valueFunction · 0.85

Tested by 4

test_write_tokenFunction · 0.72
test_generate_decode_jwtFunction · 0.72
test_user_activeMethod · 0.72