-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AcquireTokenSilent not working #45
Comments
The code is truly OK. But I don't see the calls of this methods. Probably you always call Did you check the API access with obtained access token? Possibly you do not get the right token at all? Some app registration issues could be the reason. Are you on android or iOS? I can check only android version and the persistent cache in the sample app works as intended. The Please check all the points above and come back with report :) |
I am testing in iOS, I am calling getToken then it is showing Microsoft login page and i am getting response like this
After that i am killing my app try calling silent token it is again showing microsoft login page and i am doing login then it is navigating to home page.From second time onwards silent token is working fine only first time silent token is navigating to login page. |
I suppose you encountered some AsyncStorage issue. Are you on the last RN version? Please check related github issues and solutions proposed there. Actually you can test AsyncStorage independent from AzureAuth library. Try to instantiate AS and save and retrieve some value. |
Yes i am using react native latest version |
You did not listed refresh token in your response. It should be there. The scope |
I debugged Azure auth class, In my response refresh token is there will it cause any problem |
OK. It should be there, so here is everything right! ;) |
I checked again async storage is working fine. |
Hi, in the issue #46 you wrote
Does it mean you have now solved this cache issue? |
Due to our company policy in azure it is asking again login |
@vmurin when I called acquireTokenSilent, my tokenExpireDate wasn't extended. |
Hi @vmurin, I am facing the same issue. If I try to login using Both the Package versions -
|
I am getting response after successful login after that i am killing my app and try to do silent login it is navigating to user interaction login. Am i doing anything wrong
code:
The text was updated successfully, but these errors were encountered: