authentication

package
v0.0.0-...-3ee563d Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(email string) (string, error)

func GetEmailByToken

func GetEmailByToken(token string) (string, error)

Types

type CustomClaims

type CustomClaims struct {
	Email string
	jwt.RegisteredClaims
	ExpireAt time.Time
}

func (*CustomClaims) Valid

func (c *CustomClaims) Valid() error

Jump to

Keyboard shortcuts

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