token

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 4 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(bookID int, isAdmin bool, email string, password string) (t string, err error)
	ParseToken(tokenString string) (claims JwtCustomClaim, err error)
}

func NewJWTService

func NewJWTService() JWTService

type JwtCustomClaim

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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