Skip to content

Commit a86a5c1

Browse files
committed
Refresh auth in loadInitSettings
1 parent 4a92a79 commit a86a5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: script/fetch-kobo-wishlist.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ type Settings = {
235235
};
236236

237237
const loadInitSettings = async (auth: Auth): Promise<Settings> => {
238-
const res = await fetch('https://storeapi.kobo.com/v1/initialization', {
238+
const res = await fetchWithRefresh(auth, 'https://storeapi.kobo.com/v1/initialization', {
239239
headers: {
240240
...defaultHeaders(true),
241241
...authHeaders(auth.accessToken),

0 commit comments

Comments
 (0)