jwt

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(claims, alg, key string) (string, error)

Types

type JsonField

type JsonField map[string]interface{}

func (JsonField) ToJson

func (j JsonField) ToJson() string

func (JsonField) ToJsonIndent

func (j JsonField) ToJsonIndent() string

type Token

type Token struct {
	Valid  bool
	Header JsonField
	Claims JsonField
}

func Decode

func Decode(rawToken, alg, key string) (Token, error)

func (Token) String

func (t Token) String() string

func (Token) StringIndent

func (t Token) StringIndent() string

Jump to

Keyboard shortcuts

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