GuardianDb.Token
A very simple model for storing tokens generated by guardian.
Summary
before_insert(changeset) | |
before_update(changeset) | |
create!(claims, jwt) | Create a new new token based on the JWT and decoded claims |
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
Purge any tokens that are expired. This should be done periodically to keep your DB table clean of clutter