News for hackers. Stuff that matters.
Re:Supabase Auth supports anonymous sign-ins by justanotheratom on Wednesday April 17, 2024 @12:41PM (#40067123)
I wonder how anonymous user sign-in info is persisted on the client. Specifically, I want to know whether re-installing the App will make it forget the previous anonymous sign-in.
Re:Supabase Auth supports anonymous sign-ins by kangmingtay on Wednesday April 17, 2024 @10:21PM (#40072317)
re-installing the app will remove any locally persisted state - which includes the anonymous user’s sign in info

in a web app, we store this stare in either local storage / cookies

in a mobile app, this state is stored in the local storage equivalent - SharedPreferences for android and NSUserDefaults for IOS

Re:Supabase Auth supports anonymous sign-ins by Leftium on Wednesday April 17, 2024 @01:30PM (#40067715)
Supabase also offers data (DB as a service).

I wonder if that means Supabase can solve the (separate) user storage problem[1].

[1]: https://threadreaderapp.com/thread/1651434348174778370.html

Re:Supabase Auth supports anonymous sign-ins by kangmingtay on Wednesday April 17, 2024 @10:17PM (#40072299)
supabase auth stores your users in the same database created, just in a separate schema so you have full access to it to perform joins or enforce referential integrity.
Re:Supabase Auth supports anonymous sign-ins by Leftium on Thursday April 18, 2024 @02:23AM (#40073495)
Cool! Now I know at least two auth services that don't have this user storage problem.

FaunaDB also integrates DBaaS with their auth, but FaunaDB is a very different DB that doesn't work with standard SQL.

And FaunaDB doesn't have support for anonymous users!

Re:Supabase Auth supports anonymous sign-ins by jemmyw on Wednesday April 17, 2024 @08:18PM (#40071604)
Well, damn. I put effort into making a thing that could be tried out by anonymous users but still had RLS policies and now they've provided a solution that would have made the whole thing heaps easier.