We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5f20a commit c9e37e2Copy full SHA for c9e37e2
1 file changed
app/services/spotify.ts
@@ -1,4 +1,4 @@
1
-import { InMemoryCachingStrategy, SpotifyApi } from '@spotify/web-api-ts-sdk'
+import { SpotifyApi } from '@spotify/web-api-ts-sdk'
2
import type { Page, Track } from '@spotify/web-api-ts-sdk'
3
import {
4
filter,
@@ -98,7 +98,7 @@ async function* paginate<Item>(
98
} while (offset < lastPage.total)
99
}
100
101
-const spotify = SpotifyApi.withImplicitGrant(
+const spotify = SpotifyApi.withUserAuthorization(
102
`b61d28d1ed4c49e8ba5d2923ed367262`,
103
SITE_URL,
104
[
@@ -108,5 +108,4 @@ const spotify = SpotifyApi.withImplicitGrant(
108
`user-library-read`,
109
`user-read-playback-state`,
110
],
111
- { cachingStrategy: new InMemoryCachingStrategy() },
112
)
0 commit comments