qrcodes

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package qrcodes provides QR code generation for TOTP two-factor authentication setup.

Index

Constants

This section is empty.

Variables

View Source
var (
	QRCodeProviders = wire.NewSet(
		NewBuilder,
	)
)

Functions

func RegisterBuilder

func RegisterBuilder(i do.Injector)

RegisterBuilder registers a Builder with the injector.

Types

type Builder

type Builder interface {
	BuildQRCode(ctx context.Context, username, twoFactorSecret string) string
}

Builder generates QR codes for TOTP two-factor authentication.

func NewBuilder

func NewBuilder(tracerProvider tracing.TracerProvider, logger logging.Logger) Builder

NewBuilder returns a new QR code Builder.

type Issuer

type Issuer string

Issuer identifies the service that issued the TOTP secret.

Jump to

Keyboard shortcuts

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