Please update Firebase REST API docs

72 views
Skip to first unread message

Maisnam Raju

unread,
Sep 24, 2019, 11:50:09 AM9/24/19
to Firebase Google Group
Please update the documentation for the example in the docs below 
curl 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key=[API_KEY]' \
-H 'Content-Type: application/json' \
--data-binary '{"postBody":"id_token=[GOOGLE_ID_TOKEN]&providerId=[google.com]","requestUri":"[http://localhost]","returnIdpCredential":true,"returnSecureToken":true}'
The id_token should be access_token. Totally wasted one whole day looking at the docs.

Kato Richardson

unread,
Sep 24, 2019, 5:42:32 PM9/24/19
to Firebase Google Group
Hello Maisnam,

It looks like id_token is used for Google OAuth, while access_token is used for Facebook, Twitter, et al and appears in the next example down. I'll see if we can make the docs a bit clearer on when each use case applies, but the example is valid for the use case it covers.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/a42f1c9f-c67f-4a60-b5e7-c3f42872a91d%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Maisnam Raju

unread,
Sep 25, 2019, 4:13:33 PM9/25/19
to fireba...@googlegroups.com
Hi Kato, i tried using id_token and it threw me an error message. I had to spend half a day looking for a solution but upon experimenting with access_token. I was able to make it work. 

Reply all
Reply to author
Forward
0 new messages