Azure-Samples / ms-identity-mobile-apple-swift-objc

An iOS sample in Swift that authenticates Microsoft Account and Azure AD users and calls the Graph API using OAuth 2.0
https://aka.ms/aaddev
74 stars 37 forks source link

applicationContext.allAccounts() is always empty #59

Closed hassanelshairr closed 3 years ago

hassanelshairr commented 4 years ago

I'm trying to refresh existing token by calling acquireTokenSilently as in the demo. However, applicationContext.allAccounts() is always empty.

eltonjhony commented 4 years ago

I'm facing the same issue.

oldalton commented 4 years ago

Hi, can you make sure you followed keychain setup steps as described here: https://github.com/AzureAD/microsoft-authentication-library-for-objc#configuring-msal? Thanks.

oldalton commented 4 years ago

Did the issue get resolved? Thanks.