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
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...