jwt

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Refresh = "Refresh"
	Access  = "Access"
)

Variables

This section is empty.

Functions

func ParseToken

func ParseToken[C jwtClaims.Claims](publicKey crypto.PublicKey, Type, token string, target C) (claims C, valid bool, err error)

Types

type Parser

type Parser struct {
	PublicKey crypto.PublicKey
}

func (Parser) ParseAccessToken

func (p Parser) ParseAccessToken(token string) (*jwtClaims.AccessToken, bool, error)

func (Parser) ParseRefreshToken

func (p Parser) ParseRefreshToken(token string) (*jwtClaims.RefreshToken, bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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