Skip to content

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 <noreply@anthropic.com>
@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