All blocks
Brick
Available
Free

Supabase client and auth middleware

Version
0.1.0
Database part
No

The contract

Takes a server function call. Gives it the same signed-in user and the same database access rules.

Settings

NameWhat it does
allowAnonymousSet to true to let guest sessions through. Defaults to false.
confirmWithAuthServiceSet to true to ask the auth service on every call whether the session still stands. Defaults to false.
settingNamesOther names for the three server settings, for an app that stores them differently.

Requires

This block works on its own.

Live demo

The request carries
The auth service is

Choose what the request carries, then call the server function.

This runs the block's own check in your browser, with real signatures and an auth service that lives in this page. Nothing is sent anywhere. Every refused caller is told the same thing, whatever the reason.