Back

createOAuth2Session is not attaching session object to the client

  • 0
  • Accounts
  • Web
  • Cloud
K_Vasen
23 Dec, 2023, 05:00

I logged out currently logged in user. I tried to create OAuth2Session with github as provider. It redirected to github page and... Redirected to success url which was given in function. I had given Authorization callback in github as the one which was given by Appwrite console... When I get user.. It is showing guests has no scope to account

TL;DR
The user is having trouble with the createOAuth2Session function not attaching the session object to the client. It seems like the issue might be due to a 3rd party cookie problem. The suggested solution for local development is to change browser settings to enable 3rd party cookies. For production, the user will need to use custom domains. However, the user also mentions that they logged out the currently logged-in user and tried to create an OAuth2Session with GitHub as the provider. After being redirected to the GitHub page, the user was redirected to the success URL provided in the function. When trying to get the user, it is
Drake
23 Dec, 2023, 19:13

It's probably a 3rd party cookie problem.

For local development, maybe you can change your browser settings to enable 3rd party cookies.

In production, you'll need to use custom domains

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