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
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...
- Images/Videos in storage appearing broke...
I am running into a storage issue after upgrading my self-hosted Appwrite instance , all of my previously uploaded images and videos are now showing as broken i...