twoFactorAuth

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(secret string, token string) bool

This function needs the secret and the 2fa code It authorizes the code

func GenerateQR

func GenerateQR(acc string, secret string)

This function generates a QR code for the google authenticator, based on the account name and a random secret

func GenerateSecret

func GenerateSecret() string

This function generates a random secret for the 2fa authentication

Types

This section is empty.

Jump to

Keyboard shortcuts

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