Skip to content

Commit

Permalink
fix(metabase): fix session token refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSelene committed Apr 24, 2024
1 parent 9774eab commit 13eb727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pieces/community/metabase/src/lib/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export async function queryApiAndHandleRefresh(
if (httpError.response.status === 401) {
const sessionToken = await refreshSessionToken(auth);
await storeSessionToken(sessionToken, encryptionKey as string, store);
request.headers!['X-Metabase-Session'] = sessionToken;
return (await httpClient.sendRequest(request)).body;
}
throw error;
Expand Down

0 comments on commit 13eb727

Please sign in to comment.