jwt

package
v0.0.0-...-f2ed32d Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper struct {
	SecretKey       string
	Issuer          string
	ExpirationHours int64
}

func (*Wrapper) GenerateToken

func (w *Wrapper) GenerateToken(user models.User) (string, error)

func (*Wrapper) ValidateToken

func (w *Wrapper) ValidateToken(signedToken string) (*jwtClaims, error)

Jump to

Keyboard shortcuts

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