Authenticator
Authenticator copied to clipboard
Amazon TOTP cannot be added
I am unable to even add a single URI and I'm a pro developer 😅
Sorry for the late reply. The input URI must follow this format:
otpauth://totp/{ACCOUNT_NAME}?secret={SECRET}&issuer={ISSUER}
I agree it's far from ideal and could definitely be improved.
Even armed with that information I'm unable to add one.
eg. Amazon
{ACCOUNT_NAME}= email{SECRET}= base64 string{ISSUER}= Amazon
i've tried URL Encoding both the email and base64 string
May I ask what happens after you add the code? Are you unable to add a new entry in the app, or does the watch just show a black screen?
I tested my program using the example URI from this page: https://github.com/google/google-authenticator/wiki/Key-Uri-Format
After adding the URI, you may need to reopen the app on the watch to receive a new code.
After some experimentation, I found that I also can't import the Amazon TOTP. I'll take a closer look at the code generation logic.
IIRC the web interface part of your apps says that the URI is invalid.
I'll try some other providers! Thanks.
I have been able to add all other authenticator codes except for amazon, Amazon uses a fixed-length 52-character base32 key, and comes up invalid when we try to add it. Please re-code your program to allow for this amount of characters in a secret key.
I noticed that the base32tohex function was producing a 65-character hex string, which is unusual since normally 1 byte should map to 2 hex characters. After rewriting the function, the TOTP generation for Amazon now works correctly.
https://github.com/ZoLArk173/Authenticator/blob/9a0da08fb22ed17f3329a3932f7ddc46b7d55860/utils/auth.js#L7-L23
Awesome will the zepp app be updated still on version 1.0 , thanks ?
On Wed, Sep 17, 2025, 11:54 PM ZoLArk173 @.***> wrote:
ZoLArk173 left a comment (ZoLArk173/Authenticator#13) https://github.com/ZoLArk173/Authenticator/issues/13#issuecomment-3305327065
I noticed that the base32tohex function was producing a 65-character hex string, which is unusual since normally 1 byte should map to 2 hex characters. After rewriting the function, the TOTP generation for Amazon now works correctly.
https://github.com/ZoLArk173/Authenticator/blob/9a0da08fb22ed17f3329a3932f7ddc46b7d55860/utils/auth.js#L7-L23
— Reply to this email directly, view it on GitHub https://github.com/ZoLArk173/Authenticator/issues/13#issuecomment-3305327065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLQKNGZJ5TPQMQBAPGOT433TIUGRAVCNFSM6AAAAABZTLCLGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBVGMZDOMBWGU . You are receiving this because you commented.Message ID: @.***>