mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: authType in functions template should be authMode (#45811)
This commit is contained in:
1 parent
f45a6085f4
commit
bde9d536ba
1 file changed
+1
-1
@@ -18,7 +18,7 @@ export default {
|
||||
const { name }: ReqPayload = await req.json();
|
||||
|
||||
// Using 'sb_secret_xyz' bypasses RLS — use for privileged operations
|
||||
if (ctx.authType === "secret") {
|
||||
if (ctx.authMode === "secret") {
|
||||
return Response.json({
|
||||
message: \`Hello \${name} admin!\`,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user