Back

How to make api call to google provider to fetch user information after oauth2?

  • 0
  • Accounts
  • Web
Ayush
2 Dec, 2023, 12:07

How do I make api call to google provider to fetch user information after oauth2? I'm trying to implement google oauth2. Earlier I was using firebase, but turned out it doesn't work on mobile browers.

TL;DR
User wants to know how to make an API call to the Google provider to fetch user information after OAuth2. They have tried searching but couldn't find the relevant information. The solution is to refer to Google's documentation. The session object contains the provider access token needed to make API calls to Google. The user wants to implement Google OAuth2 as they were previously using Firebase, which doesn't work on mobile browsers.
Drake
2 Dec, 2023, 16:00

Get the session. There's a provider access token in the response you can use to make API calls to google

Ayush
2 Dec, 2023, 16:08

I've got the session, but I do not exactly know how to make the calls

Drake
2 Dec, 2023, 16:09

I mean the session object. Do you have that?

Ayush
2 Dec, 2023, 16:13

Yess I have it:

Drake
2 Dec, 2023, 18:18

That provider access token

Ayush
2 Dec, 2023, 18:43

I'm meaning to ask the method to make the api call

Drake
2 Dec, 2023, 18:52

You'll need to refer to Google's documentation

Ayush
2 Dec, 2023, 18:57

Yupp I tried to find, but couldn't. Can you please share it for me, that'd be very helpful

Drake
2 Dec, 2023, 19:01

Google search skills is important so I think you should practice 😁 what have you tried?

Ayush
2 Dec, 2023, 19:15

https://developers.google.com/identity/protocols/oauth2 Tried to find here, But anyways. I'll search more. Thank you for your help!

Drake
2 Dec, 2023, 19:58

What did you Google?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more