twofa

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

2fa

Generate a generic library of 2FA tokens compatible with Google Authenticator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Code() int
	Timeout() int
	Error() error
}

func Generate

func Generate(input string) Interface

type Token

type Token struct {
	// contains filtered or unexported fields
}

func (Token) Code

func (t Token) Code() int

func (Token) Error

func (t Token) Error() error

func (Token) Timeout

func (t Token) Timeout() int

Jump to

Keyboard shortcuts

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