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 ¶
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.
Click to show internal directories.
Click to hide internal directories.