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

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.