wrobins / cordova-plugin-msal

Use the newest Microsoft MSAL library in your Cordova-based project!
Apache License 2.0
23 stars 63 forks source link

iOS signInSilent does not work #72

Open alexw-at opened 3 years ago

alexw-at commented 3 years ago

signInSilent always gives me the error "No accounts found on device" even after a successful signInInteractive. This only happens on iOS on Android signInSilent works fine.

daveywc commented 2 years ago

@alexw-at - did you ever resolve this issue on iOS - I am getting the same behaviour in an Ionic app using this plugin. Like you say it works as expected on Android.

paolomastinuspindox commented 9 months ago

I think this method

does not save the accounts retrieved from response, so when

try to retrieve the accounts in if ([accounts count] == 0) { pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"No accounts found on device."]; [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; return; } throw the exception.

UPDATE

I have set on XCODE in --> keychain-access-groups manually this value: com.microsoft.adalcache and everything work