tokens

package
v0.0.0-...-e380594 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtCsrfClaims

type JwtCsrfClaims struct {
	SessionID string
	UserID    uint32
	jwt.StandardClaims
}

type Token

type Token struct {
	Secret []byte
}

func NewToken

func NewToken(secret string) *Token

func (*Token) Check

func (token *Token) Check(sid string, uid uint32, inputToken string) (bool, error)

func (*Token) Create

func (token *Token) Create(sid string, uid uint32, tokenExpTime int64) (string, error)

Jump to

Keyboard shortcuts

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