When the flow starts, the browser opens, I select an account, and it keeps showing:
"""
Page not found
The page you're looking for doesn't exist.
general_route_not_found
"""
Although the message remains displayed in the browser, the user appears in the Console.
The URL is: https://nyc.cloud.appwrite.io/console/auth/oauth2/success?project=the-recipes&domain=.nyc.cloud.appwrite.io&key=a_session_the-recipes&secret=
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application ...>
<!-- ... -->
<activity android:exported="true" android:name="com.linusu.flutter_web_auth_2.CallbackActivity" >
<intent-filter android:label="flutter_web_auth_2">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="appwrite-callback-the-recipes" />
</intent-filter>
</activity>
<!-- ... -->
</application>
</manifest>
appwrite: 17.0.0
import "package:appwrite/enums.dart" as enums;
Future<void> signInWithGoogle() async {
try {
EasyLoading.show(status: "auth_controller.signing_in".tr);
await _account.createOAuth2Session(
provider: enums.OAuthProvider.google,
);
await _checkCurrentUser();
EasyLoading.dismiss();
} on AppwriteException catch (e) {
EasyLoading.dismiss();
print("Appwrite error: ${e.code} - ${e.message}");
EasyLoading.showError("auth_controller.sign_in_error".tr);
} catch (e) {
EasyLoading.dismiss();
print("General error: $e");
EasyLoading.showError("auth_controller.sign_in_error".tr);
}
}
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!