Back

account scope missing on Google oAuth sign in

  • 0
  • Auth
  • Web
  • Cloud
Dave
12 May, 2024, 21:16

I am currently facing an issue which is only happening to one of my testers. When she tries to sign in either with google or using email and password on both her phone and system, it throws an error.

When I run the process on my end and ask others to do it, it works well but when she does it on her end it doesn't work.

Signing up with email and password returns an invalid_parameters error, but it works for other people.

I have tried to replicate it locally and in production but I have not been able to do it.

We checked her cookies and site data but nothing has been set so far so it's clean.

Code for oAuth sign in.

TypeScript
export default function signInWithOAuth(providerName: "facebook" | "google") {
  authAccount.createOAuth2Session(
    providerName,
    `${BASE_URL}/oauth/`,
    `${BASE_URL}/login`
  );
}

BASE_URL = 'https://memora-tau.vercel.app

It works for other user and it's just her. I have tried to find out what's wrong but I don't know

TL;DR
Developers are experiencing an issue with Google OAuth sign-ins where certain users are receiving an 'invalid parameters' error, even though it works for others. The problem might be related to 3rd party cookie settings. To potentially resolve this, they can enable 3rd party cookies in their browser for local development or use a custom domain like Vercel for production.
Steven
12 May, 2024, 21:47

Please create a separate post for the invalid parameters error

Steven
12 May, 2024, 21:47

The oauth problem is 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

Dave
12 May, 2024, 21:50

Okay

Dave
12 May, 2024, 21:51

It's a side project I'm working on so I won't be doing a custom domain. Is there nwi other way?

I hosted the app on Vercel tho

Dave
12 May, 2024, 21:51

But why does it work for some people and it doesn't work for others

Dave
12 May, 2024, 21:51

account scope missing on Google oAuth sign in

Steven
12 May, 2024, 21:51

Some people or some browsers are more lenient on 3rd party cookies

Steven
12 May, 2024, 21:51

Unfortunately not

Dave
12 May, 2024, 21:53

Hmm, interesting. And the browsers used were chrome

Dave
12 May, 2024, 21:54

Ah I see. So if I got through with it, once I connect the custom domain it should start working yes?

Steven
12 May, 2024, 21:56

Yes, assuming this is indeed the problem

Dave
12 May, 2024, 21:57

Is there something else that could be the problem if not this?

Maybe I can try that since I don't have access to a custom domain

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