docs icon indicating copy to clipboard operation
docs copied to clipboard

[Feedback]Auto Sign-in after Sign-up missing explanation

Open AndroidDoctorr opened this issue 2 years ago • 1 comments

Page: /lib/auth/emailpassword/q/platform/[platform]

Feedback:

In the section, "Auto sign in after sign up" the code snippet given isn't explained at all - what is this? How is this helpful? Should this be set up before the signup function is called? Can it be called from Auth.confirmSignUp().then()? Are you supposed to be able to return the user from this function? Can an example be provided? Any context at all would be helpful.

Thank you!

AndroidDoctorr avatar Feb 25 '23 00:02 AndroidDoctorr

Hi @AndroidDoctorr can you elaborate on what information you think would be useful?

This just shows a way to get the CognitoUser if auto-signIn is enabled in your app but Amplify would handle the actual login for you. Would more details on the Hub itself like shown here or here have been useful?

tannerabread avatar Apr 24 '23 22:04 tannerabread