telenordigital / connect-ios-sdk

Docs 📒👉
https://telenordigital.github.io/id-docs.telenordigital.com/integrate-ios-sdk.html
Apache License 2.0
9 stars 8 forks source link

Can't refresh token more than one time #16

Closed thihaaung6245 closed 8 years ago

thihaaung6245 commented 8 years ago

Here is my test statement : 1.Login 2.It show user Info 3.Tapped "Refresh" which is refreshAccessToken() from oauth2Module 4.It returned the access token as we expected 5.Tapped "Refresh" again and it showed "Bad Request" Error 6.Then tapped "Refresh" again,it showed "oauth" error. 7.Then I can't Sign out anymore.

Any help?The app needs to be refreshing when the access token is expire.But,I cant refresh token more than one time.

Here is the sample which is changes of TelenorConnectIosHelloWorld project

TelenorConnectIosHelloWorld-master.zip

Here is the preview of the problem :

refresh token

jorunfa commented 8 years ago

Thanks for letting me know and providing me with example test and code. I will look closer at it soon.

jorunfa commented 8 years ago

I found the problem. When you got a new refresh_token it wan't getting saved: https://github.com/aerogear/aerogear-ios-oauth2/pull/42

It is fixed now in 02ba191. I'll make a new release shortly.

thihaaung6245 commented 8 years ago

I'll be waiting for your new release.Thanks.

jorunfa commented 8 years ago

The latest release contains the fix :) https://github.com/telenordigital/connect-ios-sdk/releases