Skip to content

Commit 1c72f24

Browse files
committed
Fixing axios
1 parent 4dd1fb5 commit 1c72f24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/web/actions/authActions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export async function signupAction(
5454
};
5555
} catch (error) {
5656
console.log(error);
57+
console.log((error as any).response);
58+
console.log((error as any).response.data);
5759
if ((error as any).response.data.message) {
5860
return { message: (error as any).response.data.message };
5961
}
@@ -96,6 +98,8 @@ export async function signinAction(
9698
};
9799
} catch (error) {
98100
console.log(error);
101+
console.log((error as any).response);
102+
console.log((error as any).response.data);
99103
if ((error as any).response.data.message) {
100104
return { message: (error as any).response.data.message };
101105
}

0 commit comments

Comments
 (0)