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.Signer
struct. - token: An
Authex.Token
struct.
Creates a new Authex.Signer struct from the options.
Parameters
- auth: An
Authex
module. - options: A keyword list of options.
Options
:secret
- the secret to sign the token with.:alg
- the algorithm to sign the token with.