Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 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,12 @@ 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");
}
// Firebase Auth is required to call this flow using the Firebase Functions SDK.
// TODO: Write additional logic tailored to the needs of your app.
// For example:
// if (!user.email_verified) {
// throw new Error("Verified email required to run flow");
// }
}),
},
async (subject) => {
Expand Down