token

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims map[string]any

type Hex

type Hex struct{}

func (Hex) Token

func (h Hex) Token(size int) (string, error)

type JWT

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

func NewJWT

func NewJWT(issuer string, signedKey any, ttl time.Duration) JWT

func (JWT) Token

func (j JWT) Token(subject string, extra Claims) (string, error)

Jump to

Keyboard shortcuts

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