View Source CsrfPlus.Store.Manager (CsrfPlus v0.2.0)

Manager to check the configured store tokens age. If a token age is greater than the max age configured, the token is flagged as expired.

The manager is started by the start_link/1 function.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the Manager.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Starts the Manager.

Note

It's preferable to start this by the CsrfPlus.Supervisor.

init_arg - Is a Keyword with the options to be used.

Options

  • :token_max_age - Maximum age of the tokens before they expires. It's a non-negative integer with the age in milliseconds. Defaults to one day.

  • :check_age_time - How often to check the age of the tokens. Non-negative integer with the time in milliseconds. Defaults to one hour.