Skip to content

Commit

Permalink
Merge branch 'trunk' into next-40274/fix-contact-locator-compat-with-…
Browse files Browse the repository at this point in the history
…66-and-67
  • Loading branch information
frobel authored Feb 10, 2025
2 parents 551f42d + 38c45e9 commit dbc56df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/services/AdminApiContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,14 @@ export class AdminApiContext {

if (response.status() === 401) {
await this.refreshAccessToken();
const updatedOptions = { ...options, headers: { Authorization: `Bearer ${this.options['access_token']}` }};
const updatedOptions: RequestOptions<PAYLOAD> = {
...options,
data: options?.data ?? undefined,
headers: {
...(options?.headers || {}),
Authorization: `Bearer ${this.options['access_token']}`,
},
};
response = await methodMap[method](url, updatedOptions);
}

Expand Down

0 comments on commit dbc56df

Please sign in to comment.