token

package
v0.0.0-...-4c3d7af Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(signingKey string, userID string) (string, error)

Create will generate a token to be verified signingKey should be auto-generated and should be kept secret userID will be used to verify users

func Verify

func Verify(signingKey, tokenStr string, userID string) error

Verify signingKey should be auto-generated and should be kept secret tokenStr is the string generated from the Create function userID is used to verify users

Types

This section is empty.

Jump to

Keyboard shortcuts

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