Some security questions #1663
-
|
Hello, I am reviewing some of the Supabase examples and have some minor technical questions. Sorry if these are more generic web development questions—I am sort of new to web security, and I am just wanting to make sure I am following the recommended practices for client access.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
hey @ornithophile yes we currently store the jwt in local storage, during early discussions we decided that if malicious JS was able to run inside the page it would also be able to access these values via supabase-js's in memory store, however I'm aware certain frameworks like react may have some protection here. We're definitely open to discussion on this one, if you have some ideas feel free to open an issue inside https://github.com/supabase/supabase-js I'm not sure about the Svelte example specifically, maybe @kiwicopple can add some insights there |
Beta Was this translation helpful? Give feedback.
hey @ornithophile
yes we currently store the jwt in local storage, during early discussions we decided that if malicious JS was able to run inside the page it would also be able to access these values via supabase-js's in memory store, however I'm aware certain frameworks like react may have some protection here. We're definitely open to discussion on this one, if you have some ideas feel free to open an issue inside https://github.com/supabase/supabase-js
I'm not sure about the Svelte example specifically, maybe @kiwicopple can add some insights there