This button will redirect you to a spotify page to log into your account. In order to look at a users top played songs the you must first tell Spotify to give me permission to get your data from them. I only request for a user's top played data and my access to it is for only 60 minutes. You can check this by looking at the link that my button will redirect you to. The scope field is set to user-top and the form of authentication is temporary.
The link that I redirect a user to contains data that Spotify will read such as: