From 93bddb7b14fb72e53b9c9aee2721bc43bb7c6d4d Mon Sep 17 00:00:00 2001 From: Tomer Aberbach Date: Sun, 31 Aug 2025 15:59:29 -0400 Subject: [PATCH] chore: migrate to new auth strategy --- app/services/spotify.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/services/spotify.ts b/app/services/spotify.ts index ce0fd73..574fc8d 100644 --- a/app/services/spotify.ts +++ b/app/services/spotify.ts @@ -1,4 +1,4 @@ -import { InMemoryCachingStrategy, SpotifyApi } from '@spotify/web-api-ts-sdk' +import { SpotifyApi } from '@spotify/web-api-ts-sdk' import type { Page, Track } from '@spotify/web-api-ts-sdk' import { filter, @@ -98,7 +98,7 @@ async function* paginate( } while (offset < lastPage.total) } -const spotify = SpotifyApi.withImplicitGrant( +const spotify = SpotifyApi.withUserAuthorization( `b61d28d1ed4c49e8ba5d2923ed367262`, SITE_URL, [ @@ -108,5 +108,4 @@ const spotify = SpotifyApi.withImplicitGrant( `user-library-read`, `user-read-playback-state`, ], - { cachingStrategy: new InMemoryCachingStrategy() }, )