Skip to content

Commit

Permalink
fix auth deduping
Browse files Browse the repository at this point in the history
  • Loading branch information
technoplato committed Dec 20, 2024
1 parent 991f68c commit 184a1d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ export async function rotateAccessToken(
);
}

const { data } = await dedupedFetch("/api/authenticate/token", () =>
api.post<AuthResponse>("/api/authenticate/token", { token: refreshToken })
const { data } = await dedupedFetch(
`/api/authenticate/token-${account}`,
() =>
api.post<AuthResponse>("/api/authenticate/token", { token: refreshToken })
);

if (!data) {
Expand Down

0 comments on commit 184a1d7

Please sign in to comment.