2fa

command module
v0.0.0-...-a8b1774 Latest Latest
Warning

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

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

README

2fa

Just a simple example code in Go showing a minimal end-to-end flow for server side support for google authenticator. The example code sets up a secret for a single user, generates a QR code as a PNG file that the user can scan into Google Authenticator, and then prompts the user for a token that the user copies from the Authenticator app. We validate the token and print out whether it is valid or not.

Documentation

Overview

2fa provides a simple end-to-end example of server side support for google authenticator. It sets up a secret for a single user, generates a QR code as a PNG file that the user can scan into Google Authenticator, and then prompts the user for a token that the user copies from the Authenticator app. We validate the token and print out whether it is valid or not.

Jump to

Keyboard shortcuts

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