jwtoken

package
v0.0.0-...-05f445e Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.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 CustomClaims

type CustomClaims struct {
	Name   string `json:"name"`
	UserId string `json:"userId"`
	jwt.StandardClaims
}

func NewClaims

func NewClaims(username, encryptedPassword, userId string) CustomClaims

type JWT

type JWT struct {
	SigningKey []byte
}

func NewJWToken

func NewJWToken() *JWT

func (*JWT) CreateJWToken

func (j *JWT) CreateJWToken(claims CustomClaims) (string, error)

func (*JWT) ParesJWToken

func (j *JWT) ParesJWToken(tokenString string) (*CustomClaims, error)

Jump to

Keyboard shortcuts

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