# Facing issue in spotify login

**URL:** <https://community.parseplatform.org/t/facing-issue-in-spotify-login/4932>\
**Category:** ParseSwift SDK\
**Created:** [April 13, 2025, 8:36pm UTC](https://community.parseplatform.org/t/facing-issue-in-spotify-login/4932 "2025-04-13T20:36:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul29](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/r/edb3f5/32.png) [@rahul29](https://community.parseplatform.org/u/rahul29)\
**Post date:** [April 13, 2025, 8:36pm UTC](https://community.parseplatform.org/t/facing-issue-in-spotify-login/4932/1 "2025-04-13T20:36:12Z")

</div>

When using 3rd party auth spotify for login, i am getting below error. Please let me know if i am missing anything in the parameters.

`Uncaught internal server error. spotify options are required. `

Here is the code which is written in swift:

```auto
let authData = ["id": spotifyUserId, "access_token": spotifyAccessToken]

PFUser.logInWithAuthType(inBackground: "spotify", authData: authData).continueWith { task -> Any? in
       if ((task.error) != nil){
            print("Error with parse login: \(task.error!.localizedDescription)")
            return task
        } else {
                        // save user
         }
     }
      print("Successfuly signed in with spotify")
      return nil
 }

```

Same code is working fine when i am passing authType = “apple” and in authData = [token, id]

- Parse ObjC SDK version: `5.1.1`
