authex v0.1.1 Authex.Secret View Source

Link to this section Summary

Functions

Creates a new secret to sign tokens with

Link to this section Functions

Link to this function new(length \\ 64) View Source
new(integer()) :: binary() | :error

Creates a new secret to sign tokens with.

Parameters

  • length: the length of the secret.

Examples

iex> {:ok, secret} = Authex.Secret.new(100)
iex> String.length(secret)
100