Expand description
PKCE Authorization Code flow for Cognito desktop login.
Flow:
- Generate code_verifier + code_challenge (S256).
- Bind a random local TCP port for the redirect_uri.
- Open browser to Cognito hosted UI.
- Await HTTP callback (code + state).
- Exchange code for tokens via /oauth2/token.
- Decode email from id_token claims (no re-verification needed โ we fetched the token directly from Cognito).
Structsยง
Constantsยง
Functionsยง
- extract_
jwt_ ๐claims - open_
browser ๐ - percent_
decode ๐ - percent_
encode ๐ - query_
param ๐ - refresh_
token - run_
pkce_ login