jwt

package
v0.0.0-...-7e4f592 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT struct {
	// contains filtered or unexported fields
}

func NewJWT

func NewJWT() *JWT

func (*JWT) BuildToken

func (j *JWT) BuildToken(claims MyCustomClaims, expiresAt time.Time) (string, error)

func (*JWT) ParseToken

func (j *JWT) ParseToken(tokenString string) (*MyCustomClaims, error)

type MyCustomClaims

type MyCustomClaims struct {
	UserId    string
	LoginName string

	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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