make sure to pass the whole query string, not just the code
@tidal-music/common!TidalError - if the auth module has not been initialized (init
and initializeLogin
are prerequisites)
AuthenticationError - if there is no code in loginResponseQuery
, normally happens when something with the login went wrong
UnexpectedError - if the credentials are not valid (e.g. status 401)
@tidal-music/common!RetryableError - if the server is not reachable (e.g. status 500)
@tidal-music/common!NetworkError - if the client appears to be offline
After the user has been redirected back to your app, you need to call this method to finalize the login flow. It will exchange the code for an access token and store it in the secure storage.