Ueberauth Passwordless v0.3.2 Ueberauth.Strategy.Passwordless.Store View Source

The uses an :ets store to satisfy the requirement that a token can only be used once.

Tokens are stored in an :ets table together with a timestamp. The table is garbage collected, meaning that in fixed intervals all tokens with timestamps older than the ttl are removed from the table.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Link to this function

add(token, timestamp \\ DateTime.utc_now())

View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.