trivago / Heimdallr.swift

Easy to use OAuth 2 library for iOS, written in Swift.
Apache License 2.0
639 stars 86 forks source link

Grant Type Failure #109

Closed morgan-legal closed 7 years ago

morgan-legal commented 7 years ago

Hi there!

First, kudos on the library!!

I do have an issue with the requestAccessToken(username,password) method. I'm having a failure: failure: grant_type must be client_credentials, authorization_code or refresh_token

      heimdallr.requestAccessToken(username: username, password: password) { result in
            switch result {
            case .success:
                print("success")
            case .failure(let error):
                print("failure: \(error.localizedDescription)")
            }
        }

Any ideas ?

Thanks, Morgan

morgan-legal commented 7 years ago

My bad... it was because Spotify only support the 3 grant_type above.

felixvisee commented 7 years ago

happy listening.