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
- 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 ...
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...
- Magic Link woes/noob
Magic Link is working; it sends the link to my email. But the link itself always leads to "Page Not Found. The page you're looking for doesn't exist". Clicking ...