Rivet.Auth.Token.Create (rivet_ident v3.5.0)

View Source

Summary

Functions

iex> {:ok, _tok, claims} = jwt(:acc, "narf", "NARF", 10, "narf", %{}) iex> claims.aud "caa1:acc:NARF"

Functions

jwt(type, subject, hostname, exp \\ nil, secret \\ nil, scope \\ %{}, claims \\ %{})

iex> {:ok, _tok, claims} = jwt(:acc, "narf", "NARF", 10, "narf", %{}) iex> claims.aud "caa1:acc:NARF"