jwt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 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 Jwt

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

func NewJwt

func NewJwt(fns ...func(*Options)) *Jwt

func (*Jwt) SignToken

func (j *Jwt) SignToken(subject string) (token string, err error)

func (*Jwt) VerifyToken

func (j *Jwt) VerifyToken(tokenString string) (*gojwt.StandardClaims, error)

type Options

type Options struct {
	Secret   string
	Issuer   string
	Lifetime time.Duration
}

Jump to

Keyboard shortcuts

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