Guardian.DB v1.1.0 Guardian.DB.Token.SweeperServer View Source
Periocially purges expired tokens from the DB.
Example
config :guardian, Guardian.DB,
sweep_interval: 60 # 1 hour
# in your supervisor
worker(Guardian.DB.Token.SweeperServer, [])
Link to this section Summary
Functions
Manually trigger a database purge of expired tokens. Also resets the current scheduled work
Reset the purge timer
Link to this section Functions
Manually trigger a database purge of expired tokens. Also resets the current scheduled work.
Reset the purge timer.