View Source Rivet.Auth.Token.Validation (rivet_ident v3.0.1)

Summary

Functions

Link to this function

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

View Source
@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()}
@spec key(hostname :: String.t(), Rivet.Ident.User.t()) ::
  {:ok, map()} | {:error, String.t(), any()}