File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/cli/lib/src/codegen/api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ final class EntrypointGenerator {
611611 ...function.metadata.whereType <ApiAuth >(),
612612 ...api.metadata.whereType <ApiAuth >(),
613613 ];
614- // final authRequired = authMetadata.whereType<ApiAuthenticated>().isNotEmpty;
614+ final authRequired = authMetadata.whereType <ApiAuthenticated >().isNotEmpty;
615615 if (authMetadata.isNotEmpty) {
616616 if (project.auth? .providers.isNotEmpty ?? false ) {
617617 authMiddleware = DartTypes .celest.middleware.property ('shelf' ).call ([
@@ -640,7 +640,7 @@ final class EntrypointGenerator {
640640 ),
641641 ]),
642642 ]),
643- 'required' : literalBool (false ),
643+ 'required' : literalBool (authRequired ),
644644 });
645645 case SupabaseExternalAuthProvider (
646646 : final projectUrl,
@@ -671,7 +671,7 @@ final class EntrypointGenerator {
671671 ]),
672672 ],
673673 ),
674- 'required' : literalBool (false ),
674+ 'required' : literalBool (authRequired ),
675675 });
676676 }
677677 }
You can’t perform that action at this time.
0 commit comments