-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override SignUp component signUp method #5072
Comments
@alenkis The current authenticator component always calls However we are working on new UI structure and the theming roadmap includes to have a global brand and use it with any component with ease. Let us know your thoughts, we have an RFC open . And we are iterating some structural auth flow changes with the new UI as well. |
@ashika01 Thank you for the explanation, these are very good news regarding the new UI structure. I'll see if I can help out in any way. In the meantime, it seems the best approach for this situation is to try to utilize |
@alenkis : Yup. Mocking pretty much what we are doing in the If this answer the question feel free to close the issue. If you have hit road blocks further along the way, feel free to reach out for clarifications :) |
@ashika01 I have a question about aws-amplify-react-native. I just imported all the components for eg. (SignIn, SignUp, Forgot password and all the other screens from aws-amplify-react-native) itself. Here how can I add the custom error messages. For eg) I have network issue while giving forgot password. It shows the error as Network error. Then how can I refactor this error message and all other messages too in aws-amplify-react-native. |
@nihp : Could you gimme a screenshot of the error? |
@nihp : We generally pass down the error coming in from cognito services with exception to some validation in toast and also we have an error message map here . If this is something you would like to see as a feature in UI. I would recommend you open a feature request with details or open up a PR for the changes. |
Closing the issue as the original question has been answered. |
Okay @ashika. I have found it yesterday. I can able to customize the error as per my wish using the errormessage map I have one question if the user goes to confirmation code screen can I able to focus the input box, if i use the non customisable screen. |
Error message map link no longer works! Can someone repost here please :) |
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 |
** Which Category is your question related to? **
Auth using
aws-amplify-react
'sAuthenticator
component** What AWS Services are you utilizing? **
Cognito
Is it possible to override or intercept in some way
signUp
method of aSignUp
component?I'm utilizing all the other components when using
Authenticator
, but when usingSignUp
component I would like to call my REST API, instead of using its ownsignUp
method which callsAuth.signUp
.I know I can build my own
SignUp
component, but I'd like to keep the styling consistent between different states of theAuthenticator
Thank you!
The text was updated successfully, but these errors were encountered: