Back

selfhosted instance saying google Auth provider isnt enabled

  • 0
  • Self Hosted
  • React Native
  • Web
  • Auth
LiamBMX
10 Feb, 2025, 21:38

My appwrite selfhosted instance is saying google Auth provider isnt enabled when Im staring at it being enabled rn 🀨 😭 {"message":"This provider is disabled. Please enable the provider from your Appwrite console to continue.","code":412,"type":"project_provider_disabled","version":"1.6.0"}

Code:

TypeScript
  const handleGoogleLogin = () => {
    account.createOAuth2Session(
      'google',
      'https://myurl.com/dashboard',
      'https://myurl.com/login'
    );
  };```
TL;DR
Developers are experiencing an issue where a self-hosted instance is stating the Google Auth provider is disabled despite being enabled. They have verified settings and shared error messages and network logs. The solution might involve checking CORS settings and verifying the project id/endpoint.
Nishant
10 Feb, 2025, 21:40

Did you double check the project id/endpoint?

Nishant
10 Feb, 2025, 21:40

Can you share network logs as well?

LiamBMX
10 Feb, 2025, 21:46

Yes they are correct

Network Logs:

TypeScript
https://cloud.mindbloomapp.com/v1/account/sessions/oauth2/google?success=https%3A%2F%2Fmindbloomapp.com%2Fdashboard&failure=https%3A%2F%2Fmindbloomapp.com%2Fsignup&project=projectId
Request Method:
GET
Status Code:
412 Precondition Failed (from disk cache)
Remote Address:
my ip...
Referrer Policy:
strict-origin-when-cross-origin```
LiamBMX
10 Feb, 2025, 21:47

Didnt know if project id was safe to share or not so removed it

Nishant
10 Feb, 2025, 21:49

what browser are you using?

LiamBMX
10 Feb, 2025, 21:50

Microsoft Edge

Nishant
10 Feb, 2025, 21:50

Ahh, okay!

Nishant
10 Feb, 2025, 21:53

Is your app domain allowed in console for cross origin/cors? just verifying if that's what is causing this!

LiamBMX
10 Feb, 2025, 21:55

As in on the website? I have just * there for all domains allowed since Im using alot of different domains depending on what device im using. I could switch it quickly though if you think that would fix the error maybe?

Nishant
10 Feb, 2025, 21:56

Yes, try to make it specific, let's see if that's what causing this! share the screenshot as well.

LiamBMX
10 Feb, 2025, 21:58

Ok I updated it but still same { "message": "This provider is disabled. Please enable the provider from your Appwrite console to continue.", "code": 412, "type": "project_provider_disabled", "version": "1.6.0" }

but this time its 412 Precondition Failed not (from disk cache)

Nishant
10 Feb, 2025, 21:59

@Steven got any idea, what might be causing this?

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