fix: authType in functions template should be authMode (#45811)

This commit is contained in:
Tyler authored and GitHub committed 2026-05-18 15:33:43 +10:00
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!\`,
});