mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-12-22 20:57:54 +01:00
Spotify Auth Fix for web
This commit is contained in:
parent
a0b5b0d170
commit
31c9a2aa57
@ -20,6 +20,7 @@ import co.touchlab.kermit.Kermit
|
||||
import com.shabinder.common.di.*
|
||||
import com.shabinder.common.di.spotify.SpotifyRequests
|
||||
import com.shabinder.common.di.spotify.authenticateSpotify
|
||||
import com.shabinder.common.models.AllPlatforms
|
||||
import com.shabinder.common.models.PlatformQueryResult
|
||||
import com.shabinder.common.models.TrackDetails
|
||||
import com.shabinder.common.models.spotify.Album
|
||||
@ -43,7 +44,9 @@ class SpotifyProvider(
|
||||
init {
|
||||
logger.d { "Creating Spotify Provider" }
|
||||
GlobalScope.launch(Dispatchers.Default) {
|
||||
authenticateSpotifyClient()
|
||||
if(currentPlatform is AllPlatforms.Js){
|
||||
authenticateSpotifyClient(override = true)
|
||||
}else authenticateSpotifyClient()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user