Closed ds8k closed 3 years ago
@ds8k It looks like you are missing the 3rd argument for federatedSignIn
, which is the user
:
const credentials = await Auth.federatedSignIn(
'appleid.apple.com',
{
token: result.identityToken,
expires_at: decoded.exp * 1000 + new Date().getTime(),
},
{
name: `${result.fullName.givenName} ${result.fullName.familyName}`,
email: decoded.email,
},
);
@amhinson You're right, I thought I did that but must have dismissed it as not working. Even including that object I still wasn't able to be properly signed in, however I moved on to just using the "SignInWithApple" web flow
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Describe the bug When authenticating a user with native Apple flow, calling
Auth.federatedSignIn('appleid.apple.com', { token, expires_at })
triggers a nav to the Amazon hosted UI instead of logging the user in and providing credentials.Using
SignInWithApple
works as expected on an Android device.I've configured things I believe correctly. Following the flow as described here - https://github.com/aws-amplify/amplify-js/issues/5543#issuecomment-624722218
To Reproduce Steps to reproduce the behavior:
federatedSignIn
Expected behavior After calling
federatedSignIn
with the appropriate parameters the user is logged inCode Snippet
Screenshots If applicable, add screenshots to help explain your problem.
What is Configured? If applicable, please provide what is configured for Amplify CLI:
aws-exports
file: