Skip to content

Commit d63c50b

Browse files
authored
Merge pull request #77 from juniorklawa/patch-1
fix: session property name
2 parents c0a81d7 + 3bd0c9c commit d63c50b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const spotifyConfig: ApiConfig = {
224224
async function playEpicSong(){
225225
try{
226226
const session = await SpotifyAuth.authorize(spotifyConfig);
227-
await SpotifyRemote.connect(session.token);
227+
await SpotifyRemote.connect(session.accessToken);
228228
await remote.playUri("spotify:track:6IA8E2Q5ttcpbuahIejO74");
229229
await remote.seek(58000);
230230
}catch(err){
@@ -270,4 +270,4 @@ Big thanks to [@lufinkey](https://github.com/lufinkey) and all of the great work
270270

271271
<!-- markdownlint-enable -->
272272
<!-- prettier-ignore-end -->
273-
<!-- ALL-CONTRIBUTORS-LIST:END -->
273+
<!-- ALL-CONTRIBUTORS-LIST:END -->

0 commit comments

Comments
 (0)