accounttoken

package
v0.0.0-...-456edf8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemClaims

type SystemClaims struct {
	EthTestID string `json:"eth_test_id"`
	jwt.StandardClaims
}

type Token

type Token interface {
	MakeToken(userId int64) (string, error)
	ValidateToken(token string) (*SystemClaims, error)
}

func NewToken

func NewToken() Token

Jump to

Keyboard shortcuts

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