struct Authly::AccessToken

Included Modules

Defined in:

authly/access_token.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(client_id : String, scope : String, id_token : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.jwt(client_id, scope, id_token) #

[View source]

Instance Method Detail

def access_token : String #

[View source]
def client_id : String #

[View source]
def expires_in : Int64 #

[View source]
def id_token : String | Nil #

[View source]
def jti : String #

[View source]
def refresh_token #

[View source]
def revoked? : Bool #

[View source]
def scope : String #

[View source]
def sub : String #

The JWT ID (jti), used to track and revoke individual tokens


[View source]
def token_type : String #

[View source]