20
Secure storage of sessions in localStorage using encryption
Source: supabase/supabase#3731 · opened by @koddr
Hi, First, thank you for Supabase! This is a great, helpful service that I've been looking for years. I noticed that all data of the current user session saved in localStorage when using the Supabase JavaScript client. This is not secure for many reasons (_I think you all know them already, I won't repeat them_). > I'm not saying you have to use the libraries that I give as an example below! I'm advocating the very principle of introducing security into public areas. Our safety is in our hands. For example, [softvar/secure-ls]( library (the first result in a Google search for secure localStorage), which uses [these]( libraries to solve a problem: • • In our case, Supabase JS client could do the following (under the hood): But for users, the value of the supabase.auth.token in the localStorage is still encrypted. Another solution, but on the server side. Save important (secret) information about session in HttpOnly cooki…
No pledges yet. Be the first to back this.
Comments
Similar requests
Add Storage Adapter For Chrome.Local.Storage Api
3 votes · 0 comments
SDK Support for Listing & Invalidating Auth Sessions
15 votes · 0 comments
Request a lighter js library without manipulating localstorage
2 votes · 0 comments
Enforce any number sessions per user
3 votes · 0 comments
Secure e-mail change - request password confirmation
4 votes · 0 comments
No comments yet.