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

View Source

Summary

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"