Vishwajeet RajOriginal post
Rank 1: Thread
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.
Plain text
"github", `${window.location.origin}/dashboard`, `${window.location.origin}/` );Summary
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