UeberauthToken.Worker (ueberauth_token v0.2.0-dev)

UeberauthToken.Worker is a background worker which verifies the authenticity of the cached active tokens.

Tokens will be removed after their expiry time when the :ttl option is set by the Cachex.put function. However, if one wants to be more aggressive in checking the cached token validity then this module can be optionally activated.

See full description of the config options in UeberauthToken.Config @moduledoc.

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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec init(nil | keyword() | map()) :: {:ok, {nil, %{provider: any()}}}

Callback implementation for GenServer.init/1.

Link to this function

periodic_checking(provider)

@spec periodic_checking(atom() | binary()) :: :ok
Link to this function

start_link(opts \\ [])

@spec start_link(keyword()) :: :ignore | {:error, any()} | {:ok, pid()}
Link to this function

worker_details(provider)

@spec worker_details(atom() | binary()) :: String.t()