jwt

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

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTService

type JWTService interface {
	GenerateToken(userId string, isAdmin bool, email string, password string) (t string, err error)
	ParseToken(tokenString string) (claims JwtCustomClaim, err error)
}

func NewJWTService

func NewJWTService(secretKey, issuer string, expired int) JWTService

type JwtCustomClaim

type JwtCustomClaim struct {
	UserID   string
	IsAdmin  bool
	Email    string
	Password string
	driJWT.StandardClaims
}

Jump to

Keyboard shortcuts

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