Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
“chrisraygill” committed Feb 7, 2025
1 parent 6366940 commit d72ca8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/migrating-from-0.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ export const simpleFlow = ai.defineFlow(
},
async (input, { context }) => {
if (!context.auth) {
throw new UserFacingError('Authorization required.');
throw new UserFacingError("UNAUTHORIZED", "Authorization required.");
}
if (input.uid !== context.auth.uid) {
throw new UserFacingError('You may only summarize your own profile data.');
throw new UserFacingError("UNAUTHORIZED", "You may only summarize your own profile data.");
}
// Flow logic here...
}
Expand Down

0 comments on commit d72ca8a

Please sign in to comment.