Skip to content

Commit

Permalink
Revise incorrect error message
Browse files Browse the repository at this point in the history
This message describes an authentication error when it is in fact an authorization error.
  • Loading branch information
mike-marcacci committed Jul 22, 2022
1 parent cf26f7a commit 14e8253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/authx/src/graphql/mutation/createUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const createUsers: GraphQLFieldConfig<
))
) {
throw new ForbiddenError(
"You must be authenticated to create a user."
"You lack sufficient authorization to create a user."
);
}

Expand Down

0 comments on commit 14e8253

Please sign in to comment.