New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/yoshiotu/2fa

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/yoshiotu/2fa

  • v0.0.0-20221017064253-a8b17749174f
  • Source
  • Go
  • Socket score

Version published
Created
Source

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.

FAQs

Package last updated on 17 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc