what write so as not to constantly write a redirect in every function in case of unauthorize
I don’t have a database on the solidstart server, I only work with third-party APIs. Where to store user information.
I want not to write in some functions constantly the same code for processing unauthorized.
You need to write a wrapper function?
13 Replies
Are you using supabase and @solid-mediakit/auth?
no
i use lucia
everything works fine for me
oh ok do you use supabase with lucia?
no, i use prisma
because I'm trying to implement row level security with supabase and can't get it to work
ok I think I have another project that used prisma let me check
I did it like this
I was doing somethig like this to get the session user data but this was sing the old solid-start
I didn't work with @solid-mediakit/auth and supabase. I can't help with this
no this is what you can do for your question, do the <Show when={session}
or did you all ready solve this?
yes
oh my bad I thought you hadn't
Enough time has passed)
I normally get stuck on problems for weeks 😆