token

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SignatureHMAC = hmac.HMAC{Key: []byte(*signKey)}
)

Functions

func GetEmail

func GetEmail(req *http.Request) (string, error)

func GetEmailFromSignature added in v0.2.1

func GetEmailFromSignature(req *http.Request) (string, error)

func GetToken

func GetToken(req *http.Request) (string, error)

func New

func New(email string) (string, time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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