jwtsession

package
v0.0.0-...-1f6e3fe Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTSigner

type JWTSigner struct {
	// contains filtered or unexported fields
}

func NewJWTSigner

func NewJWTSigner(key []byte, ttl time.Duration) *JWTSigner

func (*JWTSigner) SignUser

func (signer *JWTSigner) SignUser(identifier string) (string, error)

func (*JWTSigner) Validate

func (signer *JWTSigner) Validate(token string) (string, error)

Jump to

Keyboard shortcuts

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