Skip to content

Add reverse file with otpauth://... URLs to migration QR codes #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

idachev
Copy link

@idachev idachev commented Mar 19, 2025

Recently, I made a stupid mistake by exporting my Google Authenticator QR codes, but I was quick and did not read the last screen, which was to remove all OTPs from the app.

I lost the exported screens but fortunately have backups of my otpauth URLs from Linux OTPClient.

So what I add with this pull request is to grab a file exported from OTPClient, which li list of otpauth://... URLs and make otpauth-migration... QR images so I can back import these in my Google Authenticator.

Know that this code was generated and enhanced with claude code as I have 25 years of software experience but never touched the go language world until now :)

@idachev idachev changed the title Add reverse file with otpauth://... URL to migration QR codes Add reverse file with otpauth://... URLs to migration QR codes Mar 19, 2025
idachev and others added 2 commits March 19, 2025 05:35
- Fix error handling for binary.Write in evaluate.go
- Add error handling for w.Write in handler.go
- Replace if condition with strings.TrimPrefix in otpauth.go
- Add golangci-lint command to CLAUDE.md

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@dim13
Copy link
Owner

dim13 commented Mar 21, 2025

Thank you for your contribution. However I'm not able to accept it as-is and will need to rework it from ground up first. The quality of AI generated code (here in particular) is on pair with 5-years-old writing his first Basic program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants