Skip to content

Commit

Permalink
server, fix: first spotify auth not working
Browse files Browse the repository at this point in the history
  • Loading branch information
dxstiny committed Apr 26, 2024
1 parent b090a5f commit 66576a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/handler/spotifyAuth.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def getSpotifyToken(self, code: str) -> Optional[str]:

data["expires_at"] = data["expires_in"] + int(time())

with open(".cache", "w", encoding="utf8") as file:
with open(".cache", "w+", encoding="utf8") as file:
file.write(json.dumps(data))

clearCache()
Expand Down

0 comments on commit 66576a9

Please sign in to comment.