package
Version:
v0.0.0-...-958ef34
Opens a new window with list of versions in this module.
Published: Sep 13, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
EnsureValidToken is a middleware that will check the validity of our JWT.
type CustomClaims struct {
Scope string `json:"scope"`
}
CustomClaims contains custom data we want from the token.
Validate does nothing for this example, but we need
it to satisfy validator.CustomClaims interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.