manager

package
v0.0.0-...-6c0c241 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlphaClaims

type AlphaClaims struct {
	IsRefreshToken bool   `json:"refresh"` // wtf
	Username       string `json:"username"`
	jwt.RegisteredClaims
}

type JWTManager

type JWTManager interface {
	Generate(username string) (*dto.TokenPairResponse, error)
	Verify(token string) (string, error)
	Refresh(refreshToken string) (*schema.TokenPairResponse, error)
}

func NewJWTManager

func NewJWTManager(logger *zap.SugaredLogger) JWTManager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL