Skip to content

Commit

Permalink
Fix auth bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferri0 committed Nov 21, 2024
1 parent 665dd70 commit 07c73f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/initializers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
setEndpoint,
setFetchGraphQlHeader,
} from '@dropins/tools/fetch-graphql.js';
import * as authApi from '@dropins/storefront-auth/api.js';

// Recaptcha
import * as recaptcha from '@dropins/tools/recaptcha.js';
Expand All @@ -22,6 +23,7 @@ const setAuthHeaders = (state) => {
setFetchGraphQlHeader('Authorization', `Bearer ${token}`);
} else {
removeFetchGraphQlHeader('Authorization');
authApi.removeFetchGraphQlHeader('Authorization');
}
};

Expand Down

0 comments on commit 07c73f1

Please sign in to comment.