Guardian.DB v2.0.1 Guardian.DB.Token View Source
A very simple model for storing tokens generated by Guardian
.
Link to this section Summary
Functions
Create a 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
Link to this section Functions
Link to this function
create(claims, jwt) View Source
Create a new token based on the JWT and decoded claims.
Link to this function
find_by_claims(claims) View Source
Find one token by matching jti and aud.
Link to this function
purge_expired_tokens() View Source
Purge any tokens that are expired. This should be done periodically to keep your DB table clean of clutter.