jwttkn

package
v0.0.0-...-a8266a5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClaims

func GetClaims(token *jwt.Token) (jwt.MapClaims, error)

func NewRSASignedStringWithClaims

func NewRSASignedStringWithClaims(claims *Claims) (string, error)

func ParseRSASigned

func ParseRSASigned(tokenString string) (*jwt.Token, error)

Types

type Claims

type Claims struct {
	Code string `json:"code"`
	jwt.RegisteredClaims
}

func NewClaims

func NewClaims(code string) *Claims

Jump to

Keyboard shortcuts

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