Documentation ¶
Index ¶
- func ParseAdminToken(cfg config.IJwtConfig, tokenString string) (*kawaiiMapClaims, error)
- func ParseApiKey(cfg config.IJwtConfig, tokenString string) (*kawaiiMapClaims, error)
- func ParseToken(cfg config.IJwtConfig, tokenString string) (*kawaiiMapClaims, error)
- func RepeatToken(cfg config.IJwtConfig, claims *users.UserClaims, exp int64) string
- type IKawaiiAdmin
- type IKawaiiApiKey
- type IKawaiiAuth
- type TokenType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAdminToken ¶
func ParseAdminToken(cfg config.IJwtConfig, tokenString string) (*kawaiiMapClaims, error)
func ParseApiKey ¶
func ParseApiKey(cfg config.IJwtConfig, tokenString string) (*kawaiiMapClaims, error)
func ParseToken ¶
func ParseToken(cfg config.IJwtConfig, tokenString string) (*kawaiiMapClaims, error)
func RepeatToken ¶
func RepeatToken(cfg config.IJwtConfig, claims *users.UserClaims, exp int64) string
Types ¶
type IKawaiiAdmin ¶
type IKawaiiAdmin interface {
SignToken() string
}
type IKawaiiApiKey ¶
type IKawaiiApiKey interface {
SignToken() string
}
type IKawaiiAuth ¶
type IKawaiiAuth interface {
SignToken() string
}
func NewKawaiiAuth ¶
func NewKawaiiAuth(tokenType TokenType, cfg config.IJwtConfig, claims *users.UserClaims) (IKawaiiAuth, error)
Click to show internal directories.
Click to hide internal directories.