MCPcopy Create free account
hub / github.com/fastapi-users/fastapi-users / generate_state_token

Function generate_state_token

fastapi_users/router/oauth.py:26–30  ·  view source on GitHub ↗
(
    data: dict[str, str], secret: SecretType, lifetime_seconds: int = 3600
)

Source from the content-addressed store, hash-verified

24
25
26def generate_state_token(
27 data: dict[str, str], secret: SecretType, lifetime_seconds: int = 3600
28) -> str:
29 data["aud"] = STATE_TOKEN_AUDIENCE
30 return generate_jwt(data, secret, lifetime_seconds)
31
32
33def generate_csrf_token() -> str:

Calls 1

generate_jwtFunction · 0.90

Used in the wild real call sites across dependent graphs

searching dependent graphs…