
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:
const handleGoogleLogin = () => {
account.createOAuth2Session(
'google',
'https://myurl.com/dashboard',
'https://myurl.com/login'
);
};```

Did you double check the project id/endpoint?

Can you share network logs as well?

Yes they are correct
Network Logs:
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```

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

what browser are you using?

Microsoft Edge

Ahh, okay!

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

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?

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

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)

@Steven got any idea, what might be causing this?
Recommended threads
- can't send emails
i explored the docs and it says Messaging.CreateEmail() but this function does not exist , i installed appwrite on next js env everything works fine except thi...
- session cookie not saving
it appears with my app hosted on Cloudflare worker pages, when i try to login it does not save the session cookie. however it saves in on localhost and no probl...
- Installation with Docker and Extra Servi...
See: https://github.com/appwrite/appwrite/issues/10673
