Skip to main content

Module token

Module token 

Source

Structsยง

ApprovedGrant ๐Ÿ”’
An authenticated grant ready to mint tokens.
TokenRequest ๐Ÿ”’

Functionsยง

issue_tokens ๐Ÿ”’
Mint the access token, refresh token and device for an authenticated grant, honoring the MSC2967 device scope and emitting the OAuth token response.
token_authorization_code ๐Ÿ”’
token_device_code ๐Ÿ”’
RFC 8628 ยง3.4: poll the device-code grant; pending, denied and expired map to the ยง3.5 error codes.
token_error_response ๐Ÿ”’
RFC 6749 ยง5.2: map error to correct HTTP status and OAuth2 error code. Client-side errors (invalid grant, bad params) โ†’ 400 invalid_grant. Server-side errors โ†’ 500 server_error with sanitized message.
token_refresh ๐Ÿ”’
token_refresh_response ๐Ÿ”’
token_route ๐Ÿ”’