adamint / spotify-web-api-kotlin

Spotify Web API wrapper for Kotlin, Java, JS, and Native - Targets JVM, Android, JS (browser), Native (Desktop), and Apple tvOS/iOS. Includes a Spotify Web Playback SDK wrapper for Kotlin/JS, and a spotify-auth wrapper for Kotlin/Android.
https://adamint.github.io/spotify-web-api-kotlin-docs/
MIT License
194 stars 21 forks source link

Implicit authentication error #318

Closed BobbyESP closed 1 year ago

BobbyESP commented 1 year ago

Describe the bug When trying to do Implicit login, an error saying "AUTHENTICATION_SERVICE_UNAVAILABLE" appears. In Spotify's Android example works, but in mine no. I don't really know the reason. I'm passing all the values necessaries and also imported all the activities in the manifest.

To Reproduce Steps to reproduce the behavior:

  1. Try to make Implicit login with the version 3.8.8 of the library
  2. Authentication fails

Expected behavior Login

Screenshots

https://user-images.githubusercontent.com/60316747/202580355-1f51ba5f-c75d-461c-9d7a-c68910e720c0.mp4

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context The logcat says this things.

I/com.spotify.sdk.android.auth.LoginActivity: Spotify auth completing. The response is in EXTRA with key 'response' I/spotify-web-api-kotlin: Got implicit auth response of error I/spotify-web-api-kotlin: Got error in authorization... executing error handler

adamint commented 1 year ago

Investigating. I'll update with results

BobbyESP commented 1 year ago

Fixed, thanks for your time. The error was that I just putted the SHA1 release key and not the debug one