jwt

package
v0.0.0-...-328bdad Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: BSL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractWithClaims

func ExtractWithClaims(tokenString string, signingKey []byte) (jwt.MapClaims, error)

Types

type TokenMetaData

type TokenMetaData struct {
	UserID     string
	Expires    int64
	Additional map[string]interface{}
}

func ExtractMetaData

func ExtractMetaData(c *gin.Context) (*TokenMetaData, error)

type Tokens

type Tokens struct {
	Access           string
	Refresh          string
	AccessExpireTime int64
}

func New

func New(credentials map[string]interface{}) (*Tokens, error)

Jump to

Keyboard shortcuts

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