fix(api): 🐛 Fix slightly incorrect error message when logging in with wrong credentials

This commit is contained in:
Jesse Wierzbinski 2024-05-08 08:09:22 +00:00
parent f9c9a7d527
commit c7423d7421
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ describe(meta.route, () => {
"invalid_grant", "invalid_grant",
); );
expect(locationHeader.searchParams.get("error_description")).toBe( expect(locationHeader.searchParams.get("error_description")).toBe(
"Invalid email or password", "Invalid identifier or password",
); );
expect(response.headers.get("Set-Cookie")).toBeNull(); expect(response.headers.get("Set-Cookie")).toBeNull();
@ -184,7 +184,7 @@ describe(meta.route, () => {
"invalid_grant", "invalid_grant",
); );
expect(locationHeader.searchParams.get("error_description")).toBe( expect(locationHeader.searchParams.get("error_description")).toBe(
"Invalid email or password", "Invalid identifier or password",
); );
expect(response.headers.get("Set-Cookie")).toBeNull(); expect(response.headers.get("Set-Cookie")).toBeNull();
@ -221,7 +221,7 @@ describe(meta.route, () => {
"invalid_grant", "invalid_grant",
); );
expect(locationHeader.searchParams.get("error_description")).toBe( expect(locationHeader.searchParams.get("error_description")).toBe(
"Invalid email or password", "Invalid identifier or password",
); );
expect(response.headers.get("Set-Cookie")).toBeNull(); expect(response.headers.get("Set-Cookie")).toBeNull();

View file

@ -108,7 +108,7 @@ export default (app: Hono) =>
return returnError( return returnError(
context.req.query(), context.req.query(),
"invalid_grant", "invalid_grant",
"Invalid email or password", "Invalid identifier or password",
); );
// Try and import the key // Try and import the key