Use Spotify in Game Bar on Windows 10/11 | XBOX Support
To start using Spotify in Game Bar, press Windows logo key + G to open Game Bar, choose Widget menu > Spotify, and then select Launch Spotify. To unlink your Spotify account from Game Bar, sign in to spotify.com/account, go to the Apps section, and remove Game Bar. Having issues? Go to their support site: Did this resolve the issue?