Announcements

Help Wizard

Step 1

NEXT STEP

iOS SDK returning code = XXX instead of access_token = XXX

iOS SDK returning code = XXX instead of access_token = XXX

Plan

Free/Premium

Country

 

Device

(iPhone, iPad)

Operating System

(iOS 14+)

 

My Question or Issue

Hi all! We use SPTSessionManager from the iOS SDK to get authorization. When doing SPTSessionManager.initiateSession, we used to get back access_token = XXX

 

URLContexts -----------
[<UIOpenURLContext: 0x28030cec0; URL: MyAppName://spotify-login-callback/?spotify_version=8.6.48.1180#access_token=BQDE92aAMziPd8VzLK5gWhPY22IrOZ4LeSLPLH4Q8GnNxXTeOjRRZIRs1RPn0Y5QIv47a4nEQ_7eX7f1gcIPBt4eh6e49eK8xMnWIX-4uRcZXwhDjx4N3NIpMd-I_0WjapPrPVWdaZuZQVicnbSli-pwxsS7OZOS70ZuKIfMkGSoRxI7W57l35E2MbjfgO-7cO8Yg3I&token_type=Bearer&expires_in=3600; options: <UISceneOpenURLOptions: 0x280ad2f10; sourceApp: (null); annotation: (null); openInPlace: NO>>]

URLContexts END -------

 But now we're getting code = XXX

URLContexts -----------
[<UIOpenURLContext: 0x283d81cc0; URL: MyAppName://spotify-login-callback/?code=AQDgEdygqTXEmL1RtsyG8HUpUEalkHXloxOiDPnb-9G5dcAZCfW_OQOaKC9uEWSfOdsS3YUQyH1KVOq74DBDokG7KTE9cYDCyrKHZXjxtFyKyNDXaUtrkFKd4WM47wJpjCTVNWCU0vWTF4AaVXb3ir48c3gaBxbF2HPbNnrqxyLYEBj1OGFcyB8TWu18cf0DMqK20p5QVZoyAe8vWDgdMDuJB2NixZxDoUkbo1MZsLdeHDYne0rb0xdZ7SKTK7TvR0p1WUw9IHG0MAQYhmVDjTGUFsMZjKVJu5Vzt0Tl-KujTZf7W3_gLp8OA5J-Y9_ttjXYtBZ15g-hD62x0_fnPMCa-19NYyaM864nIfaxeLHSdkKDHnt9bf2Fxp_z_-azOC-kLKTwRR_EC6xgE_xXSps&spotify_version=8.6.74.1541; options: <UISceneOpenURLOptions: 0x283529b90; sourceApp: (null); annotation: (null); openInPlace: NO>>]
URLContexts END -------

 

It has worked well up until a couple weeks ago.

Does anyone have an idea of what's going on? Would love some help!

 

Thanks a ton.

 

Reply
1 Reply

Did you ever figure this out? I am hitting this too but it appears to be intermittent for me.

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