Back

Google Login Not working

  • 0
  • Auth
  • Web
  • Cloud
NHero
20 Sep, 2024, 10:48

when i use google login im not getting any secret/session anything to my success url that is http://localhost:3000/home The session is getting created i can see it in project -> auth -> user -> session in the appwrite cloud Code:

TypeScript
await account.createOAuth2Session(
  OAuthProvider.Google,
  "http://localhost:3000/home",
  "http://localhost:300/login",
)
TL;DR
Developers are having trouble with Google login as the secret/session data is not being received in the success URL. The issue may be related to the code snippet provided for creating an OAuth2 session. Make sure to check the implementation for any potential errors or missing configurations in the code snippet.
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