
I am creating a new app and just playing around right now. I wanted to test the Twitch login.
I have this in my appwrite lib file: export function initAppwrite() { client .setEndpoint("https://aw.mysite.com/v1") .setProject(my_project_id); }
export function loginWithTwitch() { return account.createOAuth2Session( 'twitch', "https://app.mysite.com/dashboard", // Success URL "https://app.mysite.com/" // Failure URL ); }
When I am clicking the login button, it is redirecting to this url:
https://cloud.appwrite.io/v1/account/sessions/oauth2/twitch?success=https%3A%2F%2Fapp.mysite.com%2Fdashboard&failure=https%3A%2F%2Fapp.mysite.com%2F&project=
With this error on page:
{"message":"Invalid success
param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io","code":400,"type":"general_argument_invalid","version":"1.6.0"}
I am self hosted on 1.6.0 and twitch oauth is enabled in settings. I imagine it shouldn't be redirecting to cloud.appwrite.io?
Recommended threads
- After upgrading expo 52 to 53
Hello After upgrading my project from Expo SDK 52 to SDK 53, I encountered the following error when running the app: TurboModuleRegistry.getEnforcing(...): 'P...
- Realtime stuck on pending
I'm hosting appwrite on a server where there's already nginx running and you can see how it's config looks for appwrite on attachted screenshot. I'm not getting...
- How can I use react-native-appwrite in a...
I'm building an app using React Native CLI (not Expo), and I want to add Google Sign-In authentication. However, when I try to use react-native-appwrite, it thr...
