GuardianDb.Token
A very simple model for storing tokens generated by guardian.
Summary
create!(claims, jwt) | Create a new new token based on the JWT and decoded claims |
find_by_claims(claims) | Find one token by matching jti and aud |
purge_expired_tokens!() | Purge any tokens that are expired. This should be done periodically to keep your DB table clean of clutter |
Functions
Create a new new token based on the JWT and decoded claims
Find one token by matching jti and aud
Purge any tokens that are expired. This should be done periodically to keep your DB table clean of clutter