-
Notifications
You must be signed in to change notification settings - Fork 247
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
Where does the "googleUser" variable come from? How do i get it? #278
Comments
Any updates? |
Hey! If you are looking into linking an anonymous account to a permanent account, it's a lot easier than you might expect. Remember that login anonymously is an Auth Provider, so you can just follow the guides located in "Link Multiple Auth Providers to an Account Using JavaScript". In my testing, you can use Now, speaking of the actual question: "Where does the "googleUser" variable come from?", I have no idea. But this issue can guide you: https://stackoverflow.com/questions/34804016/googleuser-getauthresponse-doesnt-contain-access-token Hope this helps. |
Just realised this is a duplicate of #256 |
I'm currently using them on my app. However, there's a bug on my app and I need the variable to be able to solve it. The bug happens when:
Right now in my app, the person will be "stuck" on the anonymous account, since I can't link an anonymous account to the existing "user@gmail.com" account. I believe I need to be able to determine if their Google account already exists to be able to handle this situation. Either merge or delete the anonymous account. |
Oh, I see. I'm not sure what past me was thinking, I guess I didn't want to prompt the user again. It seems that's the way I'm supposed to do it. Thanks for being so helpful! |
Hero. the docs are awful, this should be part of the linkWithX (linkWithPopup etc) doc instead of hidden like this |
welp i got too excited too soon, |
I want |
Where does the "googleUser" variable come from? How do i get it?
snippets-web/snippets/auth-next/index/auth_make_google_credential.js
Lines 8 to 11 in 509769a
The snippet of code mentions a variable called "googleUser" which has googleUser.getAuthResponse().id_token
I do not know where this variable comes from and how to get it. I've looked around the docs and internet for hours and had no luck.
This is my first issue on GitHub, I'm sorry if I'm doing it wrong.
The text was updated successfully, but these errors were encountered: