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
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- My account got banned without obvious re...
Hello, I’m a normal user of Appwrite. Today I found my account was banned suddenly, and I can’t log in normally. I have only been doing normal development and...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...