Is there a way to restrict edge functions to certa...
# help
w
Is there a way to restrict edge functions to certain users?
n
Hello @willm! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
This example function uses the authorization header token to init a client in the edge function then RLS for data would be enforceable. https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts The supabase-js function call sends the user token.
w
thanks so much
n
Thread was archived by @willm. Anyone can send a message to unarchive it.