class N2y::TokenPair
- N2y::TokenPair
- Reference
- Object
Defined in:
n2y/token_pair.crConstructors
- .new(*, access : Nil | String = nil, refresh : Nil | String = nil)
- .new(*, access : Nil | String = nil, refresh : Nil | String = nil, &on_change : TokenPair -> )
Instance Method Summary
- #access : String | Nil
- #access=(access : String | Nil)
- #access? : String | Nil | Nil
-
#invalidate
Invalidate both tokens.
-
#invalidate_access
Invalidate access token.
-
#invalidate_refresh
Invalidate refresh token (also invalidates access).
- #on_change(&on_change : TokenPair -> )
- #refresh : String | Nil
- #refresh=(refresh : String | Nil)
- #refresh? : String | Nil | Nil
- #usable?
Constructor Detail
def self.new(*, access : Nil | String = nil, refresh : Nil | String = nil, &on_change : TokenPair -> )
#