diff --git a/DysonNetwork.Pass/Account/Presences/SpotifyPresenceService.cs b/DysonNetwork.Pass/Account/Presences/SpotifyPresenceService.cs
index 8a759016..1d5c16d3 100644
--- a/DysonNetwork.Pass/Account/Presences/SpotifyPresenceService.cs
+++ b/DysonNetwork.Pass/Account/Presences/SpotifyPresenceService.cs
@@ -31,7 +31,7 @@ public class SpotifyPresenceService(
///
/// Updates the Spotify presence activity for a specific user
///
- public async Task UpdateSpotifyPresenceAsync(SnAccount account)
+ private async Task UpdateSpotifyPresenceAsync(SnAccount account)
{
var connection = await db.AccountConnections
.FirstOrDefaultAsync(c => c.AccountId == account.Id && c.Provider == "spotify");
@@ -104,7 +104,7 @@ public class SpotifyPresenceService(
);
}
- private async Task ParseAndCreatePresenceActivityAsync(Guid accountId, string currentlyPlayingJson)
+ private static Task ParseAndCreatePresenceActivityAsync(Guid accountId, string currentlyPlayingJson)
{
var document = JsonDocument.Parse(currentlyPlayingJson);
var root = document.RootElement;
@@ -178,7 +178,7 @@ public class SpotifyPresenceService(
contextUrl = contextExternalUrls.GetProperty("spotify").GetString();
}
- return new SnPresenceActivity
+ return Task.FromResult(new SnPresenceActivity
{
AccountId = accountId,
Type = PresenceType.Music,
@@ -204,6 +204,6 @@ public class SpotifyPresenceService(
["spotify_track_url"] = trackUrl,
["updated_at"] = SystemClock.Instance.GetCurrentInstant()
}
- };
+ });
}
}
diff --git a/DysonNetwork.Pass/Auth/OpenId/SpotifyOidcService.cs b/DysonNetwork.Pass/Auth/OpenId/SpotifyOidcService.cs
index 3777fce5..214b3602 100644
--- a/DysonNetwork.Pass/Auth/OpenId/SpotifyOidcService.cs
+++ b/DysonNetwork.Pass/Auth/OpenId/SpotifyOidcService.cs
@@ -29,7 +29,7 @@ public class SpotifyOidcService(
{ "client_id", config.ClientId },
{ "redirect_uri", config.RedirectUri },
{ "response_type", "code" },
- { "scope", "user-read-private user-read-current-playing user-read-email" },
+ { "scope", "user-read-private user-read-email user-read-currently-playing" },
{ "state", state },
};