#✅ - Auth sign out issue using Social auth

1 messages · Page 1 of 1 (latest)

dense storm
#

I have Expo app with SIWA using Amplify Authentication. Took quite some time but I was able to set it up to a workable state using Amplify documentation 😅.

By using preferEphemeralSession: true option in WebBrowser.openAuthSessionAsync I'm able to prevent the dialog window (which is very frustrating UX, especially during signout) from showing BUT when I call Auth.signOut() the in-app browser still automatically opens and closes (see video). This is bad UX. Can this be solved (i.e. by a web call without the in-app browser opening)?

async function urlOpener(url, redirectUrl) {
  const { type, url: newUrl } = await WebBrowser.openAuthSessionAsync(url, redirectUrl, {
    preferEphemeralSession: true, // private session, so doesn't show dialog BUT asks apple verification code every time
  });

  if (type === 'success' && Platform.OS === 'ios') {
    WebBrowser.dismissBrowser();
    return Linking.openURL(newUrl);
  }
}
#

Sign in with apple

Sign out
Auth.signOut()

prisma karma
#

Hi @dense storm I was looking for that issue you just posted for progress. I do not believe we currently have a solution on the roadmap for this, it is based off of the dependence on Hosted UI for our federatedSignIn

https://github.com/aws-amplify/amplify-js/issues/6261
I think this issue would also be good to thumbs up and add feedback to, and also this one https://github.com/aws-amplify/amplify-js/issues/3410

I know there has been some investigations into the topic but no resolution that I've heard of

dense storm
#

Oh, understood. Thanks for looking into this!

vestal scarabBOT
#

✅ - Auth sign out issue using Social auth