I am trying to get federatedSignIn working using the Authenticator UI.
I have a button which is calling Auth.federatedSignIn that redirects to HostedUI and then returns me to my app which appears to be successful http://localhost:3000/?code=e13e3aac-8dfc-4805-985d-8a61d23f7f19&state=VmtKvSJjfLb3hCREEQTQr54BHxDm6zfV.
The problem is when I call Auth.currentAuthenticatedUser I am getting "The user is not authenticated".
Not sure what I am doing wrong or if there is a step I am missing but have searched everywhere and been unable to find anything.