Skip to content

Commit

Permalink
chore: make firebase template auth policy a comment to reduce friction
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj authored Jun 24, 2024
1 parent 78f4b67 commit 3f9c973
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions genkit-tools/cli/config/firebase.index.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ export const menuSuggestionFlow = onFlow(
inputSchema: z.string(),
outputSchema: z.string(),
authPolicy: firebaseAuth((user) => {
if (!user.email_verified) {
throw new Error("Verified email required to run flow");
}
// TODO: insert authorization logic. For example:
// if (!user.email_verified) {
// throw new Error("Verified email required to run flow");
// }
}),
},
async (subject) => {
Expand Down

0 comments on commit 3f9c973

Please sign in to comment.