nonces

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRandomBytes               = 32
	DefaultDuration    time.Duration = time.Hour * 24
)

Functions

func New

func New(expires time.Duration) (factory feature.NonceFactory)

New creates a new feature.NonceFactory with the given expiration duration, if the expires value is less than 1s, the package default of 24h is used

Types

This section is empty.

Jump to

Keyboard shortcuts

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