• 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.

    Parameters

    • loginResponseQuery: string

      make sure to pass the whole query string, not just the code

    Returns Promise<void>

    Throws

    @tidal-music/common!TidalError - if the auth module has not been initialized (init and initializeLogin are prerequisites)

    Throws

    AuthenticationError - if there is no code in loginResponseQuery, normally happens when something with the login went wrong

    Throws

    UnexpectedError - if the credentials are not valid (e.g. status 401)

    Throws

    @tidal-music/common!RetryableError - if the server is not reachable (e.g. status 500)

    Throws

    @tidal-music/common!NetworkError - if the client appears to be offline