firebase / firebase/snippets-web

Where does the "googleUser" variable come from? How do i get it?

Open
#278 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
802
Forks
285
PR merge metrics
No merged PRs in 30d

Description

Where does the "googleUser" variable come from? How do i get it?

https://github.com/firebase/snippets-web/blob/509769a817d7437616bcfcb816f783b29aaca843/snippets/auth-next/index/auth_make_google_credential.js#L8-L11

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.