pkg

package
v0.0.0-...-9b45bd6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUserToken

func GenerateUserToken(
	email, secretKey string,
	expireDuration time.Duration,
) (string, error)

Types

type UserClaims

type UserClaims struct {
	Email string
	jwt.StandardClaims
}

func ParseUserToken

func ParseUserToken(
	token, secretKey string,
) (*UserClaims, error)

Jump to

Keyboard shortcuts

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