Skip to content

Commit d56da3d

Browse files
committed
fix: Modify existing instanceClient to use basic auth
Otherwise, we end up with the wrong base URL.
1 parent 02fdd10 commit d56da3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/integrations/api/instance/auth/useInstanceLoginMutation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ export async function onInstanceLoginSubmit({
5252
instanceClient,
5353
auth,
5454
});
55+
instanceClient.defaults.auth = auth;
56+
instanceClient.defaults.withCredentials = false;
5557
authStore.flagForBasicAuth(entityId, auth);
5658
return {
5759
message,
5860
user,
59-
instanceClient: getInstanceClient({ id: entityId }),
6061
};
6162
} catch (err) {
6263
if (isLocalStudio) {

0 commit comments

Comments
 (0)