
Getting this error on deployed version.
{"message":"Invalid success
param: URL host must be one of: localhost, cloud.appwrite.io, *","code":400,"type":"general_argument_invalid","version":"0.11.10"}
link: https://expensasaurus.vercel.app/
code used for login.
TypeScript
"github",
`${window.location.origin}/dashboard`,
`${window.location.origin}/`
);
TL;DR
Title: Github login working locally but not on deployed version [SOLVED]
Message: I was able to resolve the issue. Make sure to add a web platform with a matching hostname. The error you encountered on the deployed version is `"Invalid 'success' param: URL host must be one of: localhost, cloud.appwrite.io, *"`.
Solution: Update your code for the login as follows:
```
account.createOAuth2Session(
"github",
`${window.location.origin}/dashboard`,
`${window.location.origin}/`
);
```
Link: [Expensasaurus deployed version](https://expensasaurus
did you add a web platform with matching hostname?

Fixed

[SOLVED] Able to Github login on local but not working on deployed version.
Recommended threads
- Upgrade Issue
Am having issue upgrading my appwrite account to pro as my card number is 19 and the required input is 16 digit
- createEmailPasswordSession Error using S...
Did someone succeed using SSR approach for login?
- [Solved] how to get user prefs from serv...
i want to get a specific users preferences from serverside maybe i missunderstood something
