jwt

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package jwt provides [token.Authority] with secure JSON Web Tokens issuer defaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tokenizer

type Tokenizer struct {
	// contains filtered or unexported fields
}

func New

func New(withOptions ...secrets.Option) *Tokenizer

func (*Tokenizer) Decode

func (h *Tokenizer) Decode(data any, tokenString string) (err error)

func (*Tokenizer) Encode

func (h *Tokenizer) Encode(data any) (string, error)

func (*Tokenizer) Rotate

func (h *Tokenizer) Rotate(present, past *secrets.Secret) error

Jump to

Keyboard shortcuts

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