I am trying to implement Google login in my Flutter application for Windows and macOS. It works correctly on macOS, but on Windows, I encounter the following error:
AppwriteException: Invalid OAuth2 Response. Key and Secret not available (500)
Here is my Flutter code:
await AppController.account.createOAuth2Session(
provider: OAuthProvider.google,
success: (Platform.isMacOS) ? null : 'http://localhost:3000/auth/oauth2/success',
failure: (Platform.isMacOS) ? null : 'http://localhost:3000/auth/oauth2/failure'
);
} catch (error) {
throw CustomException(mensaje: "UNKNOWN_ERROR".tr, showAlert: true);
}```
How can I solve this? Where is the error?
Recommended threads
- Status 400 on oauth
Hello, I am getting status 400 on oauth login via google (redirect_uri_mismatch), same with Apple oauth. Is there any issues with oauth authorization currently...
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- Request for JWKS Endpoint and OIDC Disco...
Hey Appwrite Team, Do you have plans to support JWKS and a well-known OIDC discovery endpoint? This would let us verify Appwrite JWTs in other services using st...