totp

package
v0.0.0-...-1726717 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(deps *Dependencies) (*provider, error)

NewProvider returns a new totp provider

Types

type Dependencies

type Dependencies struct {
	Log             *zerolog.Logger
	StorageProvider storage.Provider
	// EncryptionKey is the server-side key used to encrypt TOTP shared
	// secrets at rest. Wired to Config.JWTSecret in internal/authenticators.
	EncryptionKey string
}

type TOTPConfig

type TOTPConfig struct {
	ScannerImage string
	Secret       string
}

TOTPConfig defines totp config

Jump to

Keyboard shortcuts

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