claim

package
v0.0.0-...-b497eb9 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim

type Claim struct {
	jwt.StandardClaims
	ID int `json:"id"`
}

Claim to JWT.

func GetFromToken

func GetFromToken(tokenString, signingString string) (*Claim, error)

GetFromToken returns a claim from a token.

func (*Claim) GetToken

func (c *Claim) GetToken(signingString string) (string, error)

GetToken returns a token with the claim.

Jump to

Keyboard shortcuts

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