Skip to content
/ 2fa Public

golang flow for using google authenticator 2fa two factor auth

License

Notifications You must be signed in to change notification settings

yoshiotu/2fa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

golang flow for using google authenticator 2fa two factor auth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages