jwt

package
v0.0.0-...-904661e Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(key *rsa.PrivateKey, username string, secretKey string) (string, error)

func UnmarshalRSAKey

func UnmarshalRSAKey(data string) (*rsa.PrivateKey, error)

Types

type JSONWebToken

type JSONWebToken struct {
	NotBefore time.Time
	IssuedAt  time.Time
	Expiry    time.Time
	Username  string
	SecretKey string
}

func Parse

func Parse(key *rsa.PrivateKey, rawToken string) (JSONWebToken, error)

Jump to

Keyboard shortcuts

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