struct

Authly::AccessToken

Inherits JSON::Serializable < Struct < Value < Object

Constants

ACCESS_TTL = Authly.config.access_ttl
REFRESH_TTL = Authly.config.refresh_ttl

Constructors

new(client_id : String, scope : String, id_token : String | Nil = nil, cert_thumbprint : String | Nil = nil, user_id : String | Nil = nil)

Initialize with optional user_id for password grant flow

@param client_id - The OAuth client ID @param scope - Space-separated scopes @param id_token - Optional OpenID Connect ID token @param cert_thumbprint - Optional mTLS certificate thumbprint @param user_id - Optional user ID (from password grant or authorization code)

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

jwt(client_id, scope, id_token)
Source

Instance methods

access_token
Source
client_id
Source
expires_in
Source
id_token
Source
jti

JWT ID for tracking/revocation

Source
refresh_token
Source
revoked?
Source
scope
Source
sub

Subject (user ID or client ID)

Source
token_type
Source