Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CorsWrapper = cors.New(cors.Options{ AllowedMethods: []string{"GET", "POST"}, AllowedHeaders: []string{"Content-Type", "Origin", "Accept", "*"}, })
For dev only - Set up CORS so React client can consume our API
View Source
var Middleware = jwtmiddleware.New(jwtmiddleware.Options{
ValidationKeyGetter: getValidationKey,
SigningMethod: jwt.SigningMethodRS256,
})
Functions ¶
This section is empty.
Types ¶
type JSONWebKeys ¶
type Jwks ¶
type Jwks struct {
Keys []JSONWebKeys `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.