Skip to content
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

iOS signInSilent does not work #72

Open
alexw-at opened this issue Mar 2, 2021 · 2 comments
Open

iOS signInSilent does not work #72

alexw-at opened this issue Mar 2, 2021 · 2 comments

Comments

@alexw-at
Copy link

alexw-at commented Mar 2, 2021

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
Copy link

daveywc commented Oct 12, 2021

@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
Copy link

paolomastinuspindox commented Sep 1, 2023

I think this method

  • (void)signInInteractive:(CDVInvokedUrlCommand*)command

does not save the accounts retrieved from response, so when

  • (void)signInSilent:(CDVInvokedUrlCommand*)command

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants