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)
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
jwt(client_id, scope, id_token)
SourceInstance methods
access_token
Sourceclient_id
Sourceexpires_in
Sourceid_token
Sourcerefresh_token
Sourcerevoked?
Sourcescope
Sourcetoken_type
Source