Skip to content

Commit

Permalink
add status code to login request error case
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Y-Ko committed Jun 26, 2024
1 parent f49d5d9 commit 0e6ddee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(auth)/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function asyncSignIn(
);

if (!res.ok) {
throw new Error(res.statusText);
throw new Error(`Status code: ${res.status}, Message: ${res.statusText}`);
}

const accessToken = res.headers.getSetCookie()[0].split("access_token=")[1];
Expand Down

0 comments on commit 0e6ddee

Please sign in to comment.