
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
- How to ByPass the Hostname restriction f...Hello, Im hosting my React application in a stateless server environment, where the IP of the client keeps changing for the server. How do I bypass the hostname... 
- Email templates partially broken in non-...Good afternoon! Non-english locales are missing some variables introduced in recent releases. That makes the sent emails look bad. The issue has been raised a... 
- Fail to access the hosted siteHi there I am facing an issue with the sites. My site is properly hosted on Appwrite but the issue is that when accessing the site from this URL https://instant... 
