View Source Flowy.Utils.JwtToken.Context (Flowy v0.1.1)
This module is responsible for decoding and verifying a JWT token
Summary
Functions
Builds a context struct with the token and the claims
Compares the audience from the token with the audience to validate
Types
@type t() :: %Flowy.Utils.JwtToken.Context{ claims: [Joken.Claim.t()], token: String.t() }
Functions
@spec build( any(), keyword() ) :: %Flowy.Utils.JwtToken.Context{claims: [Joken.Claim.t()], token: String.t()}
Builds a context struct with the token and the claims
@spec validate_audience(any()) :: false
@spec validate_audience(String.t(), maybe_improper_list()) :: boolean()
Compares the audience from the token with the audience to validate