GuardianDb.ExpiredSweeper
Periocially purges expired tokens from the DB.
Example
config :guardian_db, GuardianDb,
sweep_interval: 60 # 1 hour
# in your supervisor
worker(GuardianDb.ExpiredSweeper, [])
Summary
purge!() | Manually trigger a db purge of expired tokens. Also resets the current timer |
reset_timer!() | Reset the purge timer |
start_link() | |
start_link(state, opts \\ []) |
Functions
Manually trigger a db purge of expired tokens. Also resets the current timer.
Reset the purge timer.