jwt

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Alg string `json:"alg"`
	Typ string `json:"typ"`
}

type Token

type Token struct {
	Header Header                 `json:"header"`
	Claims map[string]interface{} `json:"claims"`
	Signed string                 `json:"signed"`
}

func New

func New() *Token

func Resolve

func Resolve(token string) (*Token, error)

func (*Token) Add

func (t *Token) Add(key string, val interface{})

func (*Token) AddClaims

func (t *Token) AddClaims(claims map[string]interface{}) *Token

func (*Token) Sign

func (t *Token) Sign() string

Jump to

Keyboard shortcuts

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