It is good to put all my js code created with web sdk to file e.g index.php wich is visible for all site viewers
It is generally not recommended to include all your code, especially sensitive SDK credentials, in a file that is visible to all site viewers. Doing so can expose your Appwrite API keys or other sensitive information, making it vulnerable to potential security risks.
That is why I personally recommend working with env variables and different code files.
Ok so make env file that is not readable to other but for js is
ye or just separate your files. you would also need to think if everyone can access your code (if it's open source), how you can hide the important stuff which shouldn't be shared
Oh and I have one more question
I can do oauth2 via web sdk
Recommended threads
- 403 The current user has been blocked.
Hello, I have a free plan; I've tried to access my project and I get the message "403 The current user has been blocked." I have database, sites, and auth in us...
- [Bug?] row_already_exists (409) after ma...
Hi, I'm experiencing a confusing issue with Appwrite Cloud Setup: A `tournaments` table with a composite UNIQUE index on (tournament_name, date). Steps to rep...
- Paid Invoice but Plan Still Free
Hi, I paid an old Pro invoice but my plan is still Free. When I try to upgrade, a new invoice is created and immediately canceled. Account email: tayebhatem98...