Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultKey default key for data
DefaultKey = "user"
)
Variables ¶
View Source
var ( // ErrTokenNotFound err token not found ErrTokenNotFound = &hes.Error{ Message: "Token not found", StatusCode: http.StatusUnauthorized, } // ErrTokenIsInvalid err token is invalid ErrTokenIsInvalid = &hes.Error{ Message: "Token is invalid", StatusCode: http.StatusUnauthorized, } )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Key string
// CookieName cookie for token
CookieName string
Skipper elton.Skipper
// Passthrough passthrough when token not found
Passthrough bool
// Decode decode
Decode Decode
}
Config jwt config
Click to show internal directories.
Click to hide internal directories.