Comments (10)
"User cannot be confirm"
You could at the very least proof-read your copy - this is effectively a commercial product, the front line of Cognito - I'm assuming you're being paid by them.
from amplify-ui.
I don't understand. I'm getting this same error message when a user clicks on the link that Cognito sends via E-mail. Shouldn't it just redirect back to the site, or at least tell the user they're confirmed? Why just die there with an error message, when the user has been confirmed? From the user's point of view, this is what they want: their account is confirmed. Why error?
I.E. the user is not confirmed, the user clicks on the link in the E-mail, now the user is confirmed, yet, they see this error message. It seems like everything worked fine except this error is displayed, so users think something went wrong.
I don't know what could be wrong on my part for configuration, as the Message Customization section of Cognito is just using defaults with Verification Type 'Link' selected.
Am I right in saying that I could get around this by using custom code that uses Auth.confirmSignUp(...) ? ...And then customizing the message to link to a page that calls that code, instead? I need to get around this ASAP, so that's what I'm going to try to do first.
-- Note -- This is from an outlook E-mail address. The actual clickable link been modified by outlook into something like this: https://na01.safelinks.protection.outlook.com/?url=<etc, cognito url goes here> ...Is it possible this is why Cognito is reporting that the user has already been confirmed? If so, that's unfortunate, but I can't tell my users not to use Outlook.
Is there any easy way of getting around this?
from amplify-ui.
@kennu I will mark this as feature/enhancement request as the user could still go back to the sign in page by clicking the link in the sign up component. Thanks for your feedback!
from amplify-ui.
FYI, we have started an RFC discussion for a proposed Amplify UI Component refactor to increase customizability and flexibility for our components. Please feel free to add any additional comments to the following issue:
from amplify-ui.
This is actually an interesting scenario. Cognito doesn't communicate through their API if a User Pool is set up to use a confirmation code or a link for account verification - it just tells us that the user is not confirmed. Additionally, the links that they generate and send out are not tied to a specific app or domain link, so they don't redirect back to your app for re-verification. Can't do much about the second point, but the first point is something to look in to, since showing a screen to enter a confirmation code when the user pool is set up with link verification is a bad user experience.
from amplify-ui.
Cognito does have a different api endpoint called DescribeUserPool
which does contain the email template settings. This does show a property of DefaultEmailOption: CONFIRM_WITH_LINK
. Not sure how accurate this will be (Cognito API's are sometimes not entirely reliable)…but it is an option to detect this.
from amplify-ui.
However, for now, it should be easy enough to detect that "User is already confirmed" error and just proceed through the sign up flow. I'll work on a fix now.
from amplify-ui.
Merged in fix for the "User is already confirmed" bug. We will have to track the issue regarding a UI specifically for when user pools are set up with link verification in another ticket, since that will be a more complicated task.
from amplify-ui.
I experience this error from Cognito hosted web authentication UI under the same conditions. Is there a solution to avoiding this or redirecting or does this logic need to be handled manually?
from amplify-ui.
@nickordoodle Maybe this helps: I had a similar problem but it went away after I did amplify pull
, since I was using an outdated version of the amplify configs which were interfering with the signup code.
from amplify-ui.
Related Issues (20)
- SelectField SVG accessibility
- Liveness - Your account isn't authorized to call this operation HOT 11
- Pass className prop through to StorageImage HOT 1
- Could not resolve all files for configuration ':amazon-cognito-identity-js:debugCompileClasspath'. HOT 1
- Vite React - Component does not work correctly in mobile browsers, especially Google browsers HOT 8
- Liveness - Users getting timeout error as soon as they try to load HOT 13
- Undefined ('S3Object') Error HOT 12
- Customizable Visual Feedback Colors in Liveness Component HOT 3
- Autocomplete footer not allowing onClick HOT 2
- [Face Liveness] Cannot complete check due to server issue. Try again HOT 13
- Authenticator with only social sign in (hide regular sign in fields) HOT 2
- React: Set unique id to each authenticator step's button HOT 3
- Unrecognizable lambda output - When user Create an account HOT 1
- ResizeObserver loop when navigating in the Authenticator component HOT 3
- [i18n] update dictionaries/authenticator/kr.ts HOT 1
- Geo: Marker "TypeError: Cannot destructure property 'map' of '(0 , import_react4.useContext)(...)' as it is null." HOT 5
- bug(react/Menu): Hitting enter on MenuButton does not trigger the menu to open
- The SignUp UI does not render few fields sometimes HOT 9
- WebSocket connection failed HOT 4
- bug(StorageManager/a11y): Upload status is not announced to screen readers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-ui.