Documentation
¶
Overview ¶
Package auth provides authentication and authorization middleware for HTTP handlers.
Index ¶
Constants ¶
View Source
const ( // AccessTokenCookieName is the name of the access token cookie. AccessTokenCookieName = "wits-access-token" // RefreshTokenCookieName is the name of the refresh token cookie. RefreshTokenCookieName = "wits-refresh-token" // WitsSessionName is the name of the session cookie. WitsSessionName = "wits-session" )
Variables ¶
This section is empty.
Functions ¶
func EchoJWTConfig ¶
EchoJWTConfig returns the configuration for the echo-jwt middleware.
Types ¶
type WitsCustomClaims ¶
type WitsCustomClaims struct {
Email string `json:"email"`
jwt.RegisteredClaims
}
WitsCustomClaims are custom claims extending default ones. See https://github.com/golang-jwt/jwt for more examples
Click to show internal directories.
Click to hide internal directories.