twj

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Percentage chan string

Functions

func GenerateSignature

func GenerateSignature() string

Types

type Claims

type Claims struct {
	jwt.StandardClaims
}

Claims defines the struct containing the token claims.

func Verify

func Verify(jwtString string, secret string) (*Claims, error)

type Jwt

type Jwt struct {
	Header  string `json:"header"`
	Payload string `json:"payload"`
	Message string `json:"message"`

	SignatureStr string `json:"signature"`
	// contains filtered or unexported fields
}
var Twj *Jwt

func ParseJWT

func ParseJWT(input string) (*Jwt, error)

Jump to

Keyboard shortcuts

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