jwty

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtClaims added in v1.1.2

type JwtClaims struct {
	jwt.StandardClaims
	Email string
	Id    int
}

type Jwty

type Jwty struct{}

func New

func New() *Jwty

func (*Jwty) DecodeJwt added in v1.1.2

func (j *Jwty) DecodeJwt(tokenString string) *JwtClaims

func (*Jwty) FastJwt

func (j *Jwty) FastJwt(id int, email string) (string, error)

func (*Jwty) GetIdAndEmail added in v1.1.3

func (j *Jwty) GetIdAndEmail(claims *JwtClaims) (int, string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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