AzureAD / azure-activedirectory-library-for-js

The code for ADAL.js and ADAL Angular has been moved to the MSAL.js repo. Please open any issues or PRs at the link below.
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/maintenance/adal-angular
Apache License 2.0
627 stars 374 forks source link

Issue with renew token #833

Closed sandipbhavsar closed 4 years ago

sandipbhavsar commented 5 years ago

Browser:

Library Name

Library version

Library version: 1.0.17

Current behavior

I am not getting renew token when I call adalService.acquireToken(clientId). the systems gets hang. I am using adal-angular npm package. It will be good if somebody can share code

navyasric commented 5 years ago

@sandipbhavsar Please provide any error or logs you are seeing when this issue happens as well as your app's auth code snippets. Here is a sample showing how to acquire tokens and you can also refer the code snippet here for the pattern to get and renew tokens. The acquireToken method silently renews the tokens if there is a valid session.