auth

package
v0.0.0-...-febeaf7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidToken = errors.New("invalid token")
)

Functions

func NewNonce

func NewNonce() (string, error)

func NewToken

func NewToken(claims Claims) (string, error)

func VerifySignature

func VerifySignature(address, message, signature string) (bool, error)

Types

type Claims

type Claims map[string]any

func ParseToken

func ParseToken(token string) (Claims, error)

Jump to

Keyboard shortcuts

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