Announcements

Help Wizard

Step 1

NEXT STEP

Having an issue with user trying to agree to Spotify's terms and conditions

Having an issue with user trying to agree to Spotify's terms and conditions

I am trying to allow users to login to their Spotify account on my flutter app. I am following the flow given in the Spotify docs (https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow).
When the user has to accept the terms and conditions and allow permission, on clicking the agree button, I get the following error in my code:  PlatformException(CANCELED, User canceled login, null, null).
I am using the flutter_web_auth to open the login page.

 

`try {
final result = await FlutterWebAuth.authenticate(
url: url, callbackUrlScheme: 'soundrise.page.link');
print(result);
} on PlatformException catch (e) {
print(e);
}`

How to resolve this issue?
Reply
1 Reply

hey did you find a solution because i cant really find anything im stuck for days now

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random