class Authly::InMemoryStore

Included Modules

Defined in:

authly/token_store.cr

Constructors

Instance Method Summary

Instance methods inherited from module Authly::TokenStore

fetch(token_id : String) fetch, revoke(token_id : String) revoke, revoked?(token_id : String) : Bool revoked?, store(token_id : String, payload) store, valid?(token_id : String) : Bool valid?

Constructor Detail

def self.new #

Use a set to track revoked tokens by their jti


[View source]

Instance Method Detail

def each(&) #

Implement the each method to make the class enumerable


[View source]
def fetch(token_id : String) #

[View source]
def revoke(token_id : String) #

Method to revoke a token by its jti


[View source]
def revoked?(token_id : String) : Bool #

Method to check if a token's jti has been revoked


[View source]
def store(token_id : String, payload) #

Method to store a token by its jti


[View source]
def valid?(token_id : String) : Bool #

[View source]