jwtutils

package
v0.0.0-...-1f0604f Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJwtUtil

func NewJwtUtil(jwtConfig *config.JwtConfig) *jwtUtil

Types

type JWTClaims

type JWTClaims struct {
	jwt.RegisteredClaims
	UserID int64 `json:"user_id"`
}

type JwtUtil

type JwtUtil interface {
	Sign(userID int64) (string, error)
	Parse(tokenString string) (*JWTClaims, error)
}

Jump to

Keyboard shortcuts

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