Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
fix: wrong refresh_token sent as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp17 committed Dec 13, 2023
1 parent bec31d1 commit 1065037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function withErrorHandling<T extends Array<any>, U>(
if (
storage &&
storage.expire_timestamp < getTodaysTimestampInSeconds() &&
(await refreshAccessToken(storage.access_token)) === false
(await refreshAccessToken(storage.refresh_token)) === false
) {
throw new Error("Could not refresh access token");
}
Expand Down

0 comments on commit 1065037

Please sign in to comment.