jwt

package
v0.0.0-...-a4c5897 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MPL-2.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 Claims

type Claims struct {
	UserID string `json:"user_id"`
	jwt.StandardClaims
}

type JwtSignatory

type JwtSignatory struct {
	SigningKey []byte
}

func (*JwtSignatory) GenerateSignedToken

func (s *JwtSignatory) GenerateSignedToken(userID string, expiration time.Time) (string, error)

func (*JwtSignatory) ParseToken

func (s *JwtSignatory) ParseToken(token string) (*Claims, error)

Jump to

Keyboard shortcuts

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