jwt

package
v0.0.0-...-6bccb8e Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT 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
}

JWT JWT

func New

func New(secretKey string) *JWT

New New

func (*JWT) Generate

func (e *JWT) Generate() (string, error)

Generate Generate

func (*JWT) Verify

func (e *JWT) Verify(accessToken string) error

Verify Verify

type Token

type Token struct {
	djwt.StandardClaims
}

Token Token

Jump to

Keyboard shortcuts

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