We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333e8c6 commit fb2577fCopy full SHA for fb2577f
src/utils/auth.ts
@@ -122,7 +122,7 @@ export async function login(username: string, password: string) {
122
variables: { username, password },
123
});
124
125
- const { authToken, refreshToken, customer } = data.login;
+ const { authToken, refreshToken, customer } = data.loginWithCookies;
126
127
if (!authToken || !refreshToken || !customer.sessionToken) {
128
throw new Error('Failed to retrieve credentials.');
0 commit comments