Skip to content

Commit fb2577f

Browse files
committed
Update auth.ts
1 parent 333e8c6 commit fb2577f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export async function login(username: string, password: string) {
122122
variables: { username, password },
123123
});
124124

125-
const { authToken, refreshToken, customer } = data.login;
125+
const { authToken, refreshToken, customer } = data.loginWithCookies;
126126

127127
if (!authToken || !refreshToken || !customer.sessionToken) {
128128
throw new Error('Failed to retrieve credentials.');

0 commit comments

Comments
 (0)