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
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- Magic Link token automatically consumed
Hi, I'm using the Magic Link auth system with Appwrite Cloud and I'm running into huge issues getting users to log in successfully. About 9 times out of 10, th...
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...