Documentation
¶
Index ¶
- func Decode(secret string, token string) (*types.JWTClaims, error)
- func Encode(secret string, claims *types.JWTClaims) (string, error)
- func GetJWTUser(c context.Context) *types.JWTClaims
- func GetSessionByHash(db *gorm.DB, cache cache.Cacher, hash string) (*models.Session, error)
- func GetUser(c context.Context) int64
- func NewSecurityHandler(db *gorm.DB, cache cache.Cacher, cfg *config.JWTConfig) api.SecurityHandler
- func VerifyUser(db *gorm.DB, cache cache.Cacher, secret, authCookie string) (*types.JWTClaims, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionByHash ¶
func NewSecurityHandler ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.