Replies: 1 comment
-
It is normal to have the URL and ANON key exposed and it will be if the REST API is used from a browser. To not have it exposed you would have to run all Supabase calls from your own server. Supabase-js does not use a cookie for storing data and uses local storage for saving the user session info. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am currently working on implementing OAuth login for a Chrome extension. Docs
This documentation does not include a section on creating a Supabase client, so I created it myself within this file.
when creating the Supabase client, the API KEY and URL are required.
Since Chrome extensions don’t have something like .env files for managing environment variables, my Supabase project's API KEY and URL will be exposed to users.
Is it safe to expose them?
++Additionally, do you know where the session cookie is stored in a Chrome extension?
I've checked service-worker under Application > Local Storage and Cookies,
as well as the same under the popup context, but I haven't been able to find it
Beta Was this translation helpful? Give feedback.
All reactions