Closed christianswanepoel closed 10 months ago
Hi @christianswanepoel thank you for opening this issue. It looks like you are using the Authenticator UI component with this issue. I'm transferring this over to the UI repo for better assistance.
Hey @christianswanepoel, thanks for bringing this to our attention and sorry for the delay. We have been able to reproduce this issue and will be working on a fix.
Hi @christianswanepoel, When you refresh the application all client side state will be lost, thus making it impossible for us to know where we sent the message. One possibility would be to make the message more generic if we don't know which method was used (text or email). Does this sound like an acceptable solution?
Hi @reesscot Yeah thats more or less the workaround we have at moment. But our implementation is supper hacky...
const components = {
Header: () => <Spacer pt="8" />,
ConfirmSignUp: {
Header() {
if (
route === "confirmSignUp" &&
!hasValidationErrors &&
!codeDeliveryDetails
) {
return (
<>
<Heading>{t("common:welcome_back")}</Heading>
<Text>{t("common:welcome_back_text")}</Text>
<style>{`.amplify-text.amplify-authenticator__subtitle { display: none;}`}</style>
</>
);
}
return null;
},
},
Note the display none as the "text" is nested in body - `<style>{`.amplify-text.amplify-authenticator__subtitle { display: none;}`}</style>`
@christianswanepoel The Authenticator
has been updated to send the confirmation code details and render the sign in confirmation UI for an end user that has signed in with unconfirmed credentials in @aws-amplify/ui-react@latest
. Closing this issue, please open a new issue if needed as we do not monitor closed issues
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
Should the user refresh or close the browser window before entering their emailed confirmation code, and return to app and logging in: cognito will return a 400 code with body...
Amplify Authenticator displays on screen an incorrect message stating a TEXT message was sent.
Expected behavior
When registering a new user and entering the emailed code everything works as expected and Cognito returns 200 with body...
Amplify Authenticator displays the correct message stating an EMAIL message was sent.
Reproduction steps
Create a user and refresh the browser window, then login using the same details as when registering.
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
To make the issue worse is that both the above examples will return via
ConfirmSignUp
.