token

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashToken

type HashToken struct {
	Secret []byte
}

func NewHMACHashToken

func NewHMACHashToken(secret string) (*HashToken, error)

func (*HashToken) Check

func (tk *HashToken) Check(s *sessions.Session, inputToken string) (bool, error)

func (*HashToken) Create

func (tk *HashToken) Create(s *sessions.Session, tokenExpTime int64) (string, error)

Jump to

Keyboard shortcuts

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