sessionkey

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignToken

func SignToken(privKeyB64, userID, domain string, method auth.Method, expiration time.Duration) (string, error)

Types

type Claims

type Claims struct {
	jwt.RegisteredClaims
	Method auth.Method `json:"method"`
}

type KeyPair

type KeyPair struct {
	PrivateKey string
	PublicKey  string
}

func GenerateKeyPair

func GenerateKeyPair() (*KeyPair, error)

Jump to

Keyboard shortcuts

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