Rivet.Auth.Token.Validation (rivet_ident v3.5.1)

View Source

Summary

Functions

jwt(target, hostname, scope \\ %{}, offset \\ 0)

@spec jwt(
  target :: Rivet.Ident.User.t() | Rivet.Ident.Factor.t(),
  hostname :: String.t(),
  scope :: map(),
  testing_only_expiration_offset :: nil | integer()
) ::
  {:ok, token :: String.t(), claims :: map(), Rivet.Ident.Factor.t()}
  | {:error, String.t()}

key(hostname, user)

@spec key(hostname :: String.t(), Rivet.Ident.User.t()) ::
  {:ok, map()} | {:error, String.t(), any()}