Closed zot24 closed 8 years ago
@zot24 did you find any solution for this?? I am having the same problem..
I'm afraid the only work around atm for this is handle the access token manually or have in mind that the data could be different... anyhow I create a PR with a fix for you and see if our team can have a look review it https://github.com/moltin/js-sdk/issues/30. It may not work I'm not a Javascript expert :) so you'll need to wait until it got tested by our js team
First time it get the access token as the API return it
However second time is pulling the access token (that haven't expire yet) from the local storage https://github.com/moltin/js-sdk/blob/master/src/moltin.coffee#L112 and it's giving it a different format