class Authly::InMemoryStore
- Authly::InMemoryStore
- Reference
- Object
Included Modules
- Authly::TokenStore
- Enumerable(String)
Defined in:
authly/token_store.crConstructors
-
.new
Use a set to track revoked tokens by their jti
Instance Method Summary
-
#each(&)
Implement the each method to make the class enumerable
- #fetch(token_id : String)
-
#revoke(token_id : String)
Method to revoke a token by its jti
-
#revoked?(token_id : String) : Bool
Method to check if a token's jti has been revoked
-
#store(token_id : String, payload)
Method to store a token by its jti
- #valid?(token_id : String) : Bool