aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
249 stars 117 forks source link

[Feature Request] Amplify.Auth.signUpWithWebUI #1448

Open camhart opened 3 years ago

camhart commented 3 years ago

Right now Amplify.Auth.signInWithWebUI only opens to the login page. The customer can always click "Sign up", but that text is hidden at the bottom of the page and not very noticeable.

I'd like to request a Amplify.Auth.signUpWithWebUI endpoint, that simply opens to the Sign Up page by default. That way I can have Login / Register buttons of my own that trigger signInWithWebUI and signUpWithWebUI.

I've dug through the source code and couldn't figure out a way to do this already. If it is already possible sorry for the ticket but please let me know how.

div5yesh commented 3 years ago

Amplify calls Cognito's authorize endpoint to show hostedUI. It seems to support this feature, we need to call login and signup endpoints for login and signup respectively.

I will discuss with the team to check if we can add support for this feature.