authex v0.2.0 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
Link to this function
compact(signer, token)
View Source
compact(signer :: Authex.Signer.t(), token :: Authex.Token.t()) :: Authex.Token.compact()
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.