When creating a session via OAuth in appwrite, we can pass 3 parameters - the OAuth provider, success url and the error url.
When no urls are passed, it just redirected to this endpoint: https://cloud.appwrite.io/console/auth/oauth2/success?project=672e4a9d002a1304....
So i passed the success url as /dashboard since thats where i wanted it to go, but it required a complete url.
But that would require me to hardcode that value, although i want the logic to work regardless i am working on localhost, production, or preview-urls
For now i got the logic working via an environment variable, but is there a better way to perform this operation?
Recommended threads
- Hosted a webite on appwrite 2 days ago, ...
I dont really know why its down, everything looks fine, the deployments and all
- OAuth login not working on deployed app ...
Hey there, I've been dealing with an issue where I cannot use OAuth on my deployed app - locally everything works fine. I am using react-router in Framework Mo...
- database documents relationships
after migrating from 1.7.4 to 1.8, database get document and list documents is getting results but with no relationship values, the relationship attribute will...