Auctoritas v0.9.1 Auctoritas.AuthenticationManager.DefaultTokenManager View Source

Link to this section Summary

Functions

Invoked when generating token with :refresh_token config option

Invoked when generating token from inserted authentication_data

Link to this section Types

Link to this section Functions

Link to this function

generate_refresh_token(name, authentication_data) View Source
generate_refresh_token(name(), authentication_data :: map()) ::
  {:ok, token()} | {:error, error :: any()}

Invoked when generating token with :refresh_token config option

Callback implementation for Auctoritas.TokenManager.generate_refresh_token/2.

Link to this function

generate_token_and_data(name, authentication_data) View Source
generate_token_and_data(name(), authentication_data :: map()) ::
  {:ok, token(), map()} | {:error, error :: any()}

Invoked when generating token from inserted authentication_data

Callback implementation for Auctoritas.TokenManager.generate_token_and_data/2.