With the npm package @aws-amplify/auth
using react (import Auth from '@aws-amplify/auth'
), there are some exported functions such as Auth.signUp({...})
and Auth.federatedSignIn()
. The federatedSignIn
sends users to the federated sign in endpoint with path /login
. I would like to send them to /signup
path but there is no such federatedSignUp()
function, anyone know a solution to send them to the /signup
federated endpoint?
My solution is to just redirect user to the following URL:
https://${COGNITO_OAUTH_DOMAIN}/signup?response_type=code&client_id=${CLIENT_ID}&redirect_uri=${encodeURIComponent(COGNITO_OAUTH_REDIRECT_SIGN_IN_URL)}