View Source BtrzAuth.Providers.UserToken (BtrzAuth v1.3.0)
UserToken will generate tokens for users authentication
Summary
Functions
Gets a token for the user with the options.
Functions
@spec get_token(Map.t(), Keyword.t()) :: {:ok, Guardian.Token.token(), Guardian.Token.claims()} | {:error, any()}
Gets a token for the user with the options.
Options may include:
secret
- secret key for generating your token.claims
- custom claims for your token. Default %{}.