token

package
v0.0.0-...-d66e173 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() (string, error)

Generate creates a cryptographically random 256-bit session token encoded as a 64-character hex string.

func Validate

func Validate(a, b string) bool

Validate compares two tokens in constant time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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