Skip to content

Commit da2264c

Browse files
fix: use 'authMode' on apikey template (#5180)
1 parent cfacea0 commit da2264c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/cli-go/internal/functions/new/templates/index_auth_mode_apikey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
// Called by another service with a secret key
1717
// ctx.supabaseAdmin bypasses RLS — use for privileged operations
1818
/*
19-
if (ctx.authType === "secret") {
19+
if (ctx.authMode === "secret") {
2020
const { user_id } = await req.json();
2121
const { data } = await ctx.supabaseAdmin.auth.admin.getUserById(user_id);
2222

0 commit comments

Comments
 (0)