authex v0.2.2 Authex.Signer View Source
Link to this section Summary
Functions
Creates a new binary compact token from the Authex.Signer and Authex.Token
structs
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 and Authex.Token
structs.
Parameters
- signer - An
Authex.Signerstruct. - token: An
Authex.Tokenstruct.
Creates a new Authex.Signer struct from the options.
Parameters
- auth: An
Authexmodule. - options: A keyword list of options.
Options
:secret- the secret to sign the token with.:alg- the algorithm to sign the token with.