totp

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCode added in v0.13.0

func GetCode(ctx context.Context, options Options) (string, error)

Get OATH TOTP MFA code from various input sources.

Types

type Options added in v0.13.0

type Options struct {
	YubikeySerial string
	YubikeyLabel  string
	EnableGui     bool
	EnableYubikey bool
}

Options given to GetCode function that controls which inputs are queried for OATH TOTP code. CLI input is always queried.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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