Documentation
¶
Overview ¶
Example ¶
v := NewValidator(exampleJwks())
tok := exampleToken()
var payload struct {
Name string `json:"name"`
}
err := v.Validate(tok, &payload)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(payload.Name)
Output: John Doe
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(v *Validator)
func WithAudience ¶
func WithClockSkew ¶
func WithIssuer ¶
func WithoutClaimValidation ¶
func WithoutClaimValidation() Option
Click to show internal directories.
Click to hide internal directories.