Can you double check that the project ID for the deployed app matches the one where you have added the platform?
Are you using OAuth2 as authentication method?
I have only one project in appwrite right now
ah, no
It looks like the account sdk was enable to get the project ID.
How have you set the client and account SDK?
Can you share the code?
i'm just using the account.create endpoint to register new users
yeah, here
Mmm It looks like it should work
i did write a function for auth using google, which i just removed
Let me see if it works now
Yeah, still gives the same error
Here https://github.com/SazedWorldbringer/spotify-tinder-thingy/blob/main/src/lib/utils.js You're loading your project ID.
But the project ID is no in your exported JSON
{
"spotifyClient": "01606d0148544ec685aeb269e5ae8365",
"endpoint" : "https://cloud.appwrite.io/v1",
"project" : {}.VITE_APPWRITE_PROJECT,
"collectionID" : "64775749e643228ccb38",
"databaseID" : "64775708cd6262fb6f60",
"apiKey" : {}.VITE_APPWRITE_API_KEY
}
So, first double check your .env file for the VITE_APPWRITE_PROJECT variable.
Second, it's best not to use an apiKey in client code.
Hey
sorry i'm responding this late
and thank you! i just hadn't set a project id env variable in vercel
also, i'll remember to not use api key in client code, thank you!
π
So it worked?
yup, auth now works from the hosted version of the app
[SOLVED] CORS No "Access-Control-Allow-Origin" header error
Recommended threads
- Docker Compose MongoDB Setup
everythings work fine but the mongodb fails on startup everytime. log: ``` Generating random MongoDB keyfile... /bin/bash: line 9: : No such file or directory ...
- 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 ...