diff --git a/composeApp/src/commonMain/kotlin/com/maxrave/simpmusic/ui/screen/login/SpotifyLoginScreen.kt b/composeApp/src/commonMain/kotlin/com/maxrave/simpmusic/ui/screen/login/SpotifyLoginScreen.kt index d89319d7..6b9152ac 100644 --- a/composeApp/src/commonMain/kotlin/com/maxrave/simpmusic/ui/screen/login/SpotifyLoginScreen.kt +++ b/composeApp/src/commonMain/kotlin/com/maxrave/simpmusic/ui/screen/login/SpotifyLoginScreen.kt @@ -172,7 +172,7 @@ fun SpotifyLoginScreen( } viewModel.setFullSpotifyCookies(cookies) } - if (Regex("^https://accounts\\.spotify\\.com/[a-z]{2}(-[a-zA-Z]{2})?/status$").matches(url)) { + if (Regex("^https://accounts\\.spotify\\.com/([a-z]{2}(-[a-zA-Z]{2})?/)?status(\\?.*)?$").matches(url)) { cookie .takeIf { it.isNotEmpty() @@ -227,4 +227,4 @@ fun SpotifyLoginScreen( ), ) } -} \ No newline at end of file +}