Skip to content

Commit

Permalink
Add forbidden in there as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwsteenbergen committed May 5, 2024
1 parent 9d3bd48 commit 8f85fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApiLibs/Spotify/SpotifyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SpotifyService(string refreshToken, string clientId, string clientSecret)

RequestResponseMiddleware.Add(async (resp) =>
{
if (resp.StatusCode == HttpStatusCode.BadRequest)
if (resp.StatusCode == HttpStatusCode.BadRequest || resp.StatusCode == HttpStatusCode.Forbidden)
{
var request = resp.Request;
if (request.EndPoint == "api/token")
Expand Down

0 comments on commit 8f85fb2

Please sign in to comment.