authex v0.1.1 Authex.Signer View Source
Link to this section Summary
Functions
Creates a new binary compact token from the Authex.Signer struct and binary claims map
Creates a new Authex.Signer struct from the options
Link to this section Types
Link to this section Functions
Creates a new binary compact token from the Authex.Signer struct and binary claims map.
Parameters
- signer - An Authex.Signer struct.
- cliams: A binary claims map.
Examples
iex> token = Authex.Token.new()
iex> claims = Authex.Token.get_claims(token)
iex> signer = Authex.Signer.new()
iex> signer |> Authex.Signer.compact(claims) |> is_binary()
true