googleauth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Users = make(map[string]string)

Functions

func GenerateTOTPSecret

func GenerateTOTPSecret(accountName string) (*otp.Key, error)

GenerateTOTPSecret generates a new TOTP secret key.

func GetProvisioningURI

func GetProvisioningURI(key *otp.Key) string

GetProvisioningURI generates a provisioning URI for the QR code.

func ValidateTOTPToken

func ValidateTOTPToken(token, secret string) bool

ValidateTOTPToken validates a TOTP token against the provided secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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