How it works...
In step 4, we created the method for handling the Spotify login process. The AuthSession.startAsync method just needed an authUrl, which was provided by the Spotify Developers documentation. The four pieces required are the Client-ID, the redirect URI for handling the response from Spotify, a scope parameter indicating the scope of user information the app is requesting, and a response_type parameter of token. We only need basic information from the user, so we requested a scope type of user-read-email. For information on all the scopes available, check the documentation at https://beta.developer.spotify.com/documentation/general/guides/scopes/.
In step 5, we completed the Spotify login handler. If the login was not successful, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access