Help Me Understand "use server" Security
I'm new to this topic. So please excuse me if my questions if they're obvious or don't sound well thought out. I'm simply trying to learn.
Let's assume I have an app dashboard. When a user visits that dashboard, I run a createEffect() to check their access status.
Inside that "client-side"
Here's a simplified example to show logic.
Here's the
For context, here's the
Let's assume I have an app dashboard. When a user visits that dashboard, I run a createEffect() to check their access status.
Inside that "client-side"
createEffect() I call a server function getUserRecord()Here's a simplified example to show logic.
Here's the
getUserRecord() function:For context, here's the
getSupabaseAdminClient() function: