Possible to get 2FA code somehow if already logged in? #165
-
I forgot to back up my Google auth codes when switching phones and I am locked out of my account. Is there a way to get the 2FA code via this app if already logged in via HA? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Sorry to hear that. If you were using the totp key, then you could just copy the key over to Authenticator. If not, you might be able to use the access_token from your auth.pickle file to try to disable 2fa on the account. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. Copy the code from where? I don't have it. Also, auth.pickle contents aren't readable. What do I need to do with the contents of this file? |
Beta Was this translation helpful? Give feedback.
-
It worked. Thanks a lot @mrlt8 for your immense help. My current access_token didn't work. However, when I restored an earlier HA backup, auth.pickle got updated, and the new access_token worked. |
Beta Was this translation helpful? Give feedback.
Sorry to hear that.
If you were using the totp key, then you could just copy the key over to Authenticator.
If not, you might be able to use the access_token from your auth.pickle file to try to disable 2fa on the account.