Festify / cordova-spotify-oauth

🔐 Easy Spotify authentication for Cordova / PhoneGap apps
MIT License
16 stars 18 forks source link

Plugin crashes before showing login screen #9

Closed andreasseiler closed 6 years ago

andreasseiler commented 6 years ago

Hi there,

I tried to use your plugin and it crashes on Android before the Login screen appears. I entered all the neccesary information. Here is my config ->

clientId: "15dd21d1356notmyrealId", redirectUrl: "http://localhost:3000/callback", scopes: ["streaming"], tokenExchangeUrl: "http://mysubdomain.herokuapp.com/swap", tokenRefreshUrl: "http://mysubdomain.herokuapp.com/refresh",

The error I'm getting is Uncaught (in promise) auth_failed: Received authentication response of invalid type error

Do you have any idea what the reason might be?

Thanks, Andi

NeoLegends commented 6 years ago

Could you check what passes through your cloud functions and whether they have seen any errors? That error occurs when the plugin sees an invalid type of response (must be „code“ for aufhorization code).

andreasseiler commented 6 years ago

Sorry, didn't get it to work ... I decided to implement the OAuth Workflow myself. Thanks anyway.