class

KemalcrStarter::Infrastructure::Jwt::TokenProvider

Inherits Reference < Object

Constants

ALGORITHM = JWT::Algorithm::HS256

Constructors

new(secret : String, issuer : String, access_ttl_minutes : Int32, refresh_ttl_days : Int32)
Source

Instance methods

decode_access_token(token : String) : AccessTokenClaims
Source
decode_refresh_token(token : String) : RefreshTokenClaims
Source
issue_token_pair(user_id : String, session_id : String, session_family_id : String, active_organization_id : String | Nil = nil, now : Time = Time.utc) : IssuedTokenPair
Source