jwt

package
v0.0.0-...-e7d9688 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToken

func NewToken(
	payload jwt.MapClaims,
	signingKey string,
	secondsDuration time.Duration,
) (string, error)

NewToken generates and returns new HS256 signed JWT token.

func ParseJWT

func ParseJWT(token, verificationKey string) (jwt.MapClaims, error)

ParseJWT verifies and parses JWT token and returns its claims.

func ParseUnverifiedJWT

func ParseUnverifiedJWT(token string) (jwt.MapClaims, error)

ParseUnverifiedJWT parses JWT token and returns its claims but DOES NOT verify the signature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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