Closed ChristopherGabba closed 9 months ago
Hi @ChristopherGabba thank you for opening this issue. To clarify the Confirmation status and Verification values are different - where Confirmation status represents a user who has confirmed their account after sign in, while the Verification values are specific to attributes (email, phone etc).
Could you clarify the value of Phone Number Verified attribute for the user in addition to Confirmation status?
Here's an example of a user with "Confirmation status" and "Email verified attribute" - there will be an equivalent "Phone number verified" attribute:
Hello again @nadetastic, you helped me with a past issue and I really appreciate it!
After submitting this issue, I spent quite a while troubleshooting it and for some reason, it literally started working and I can't explain why. I didn't update anything, I just did a bunch of different sign ins and they all seemed to update the "phone_number_verified" attribute correctly. A few times I did it this morning, they were not in sync and the verified attribute was not updating. It would show "Confirmed" in the Amplify studio for the user, but the "phone_number_verified" would still print out "false".
I see, so in your screenshot they are actually listed differently, my studio portal doesn't show the "Phone number verified" column. That's quite confusing as I would imagine confirming a user and verifying a user are the same thing.
Regardless, I think you may be able to close this issue given the fact that it appears that things are syncing up again. Thanks again, Chris
@ChristopherGabba glad to be of help! Also happy to hear that the issue was temporary. From what it sounded like it was on the Cognito side of things where the syncing was not happening properly but it appears to be resolved now. I'll go ahead and mark this issue as solved but let me know if you have any other questions!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When entering in a 6 digit phone code properly using the Auth.confirmSignUp() function, it correctly shows it as "CONFIRMED" in the AWS Amplify console, but does not update the user attribute of "phone_number_verified" to true:
console.log output
But in AWS console, it is updating it to true:
Expected behavior
I would expect this phone_number_verified attribute of AWS auth to not have to be set manually and be set automatically upon verification code entry.
Reproduction steps
Here is my 6 digit verification code function:
It properly navigates and detects the autoSignIn and functions correctly but the user attribute prop is just not updated automatically.
Code Snippet
Code listed above.
Log output
No error messages displayed.
aws-exports.js
/ eslint-disable / // WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.
const awsmobile = { "aws_project_region": "us-east-1", "aws_appsync_graphqlEndpoint": "https://5tvnvesrgjfjdclupp5rzrh5gi.appsync-api.us-east-1.amazonaws.com/graphql", "aws_appsync_region": "us-east-1", "aws_appsync_authenticationType": "API_KEY", "aws_appsync_apiKey": "da2-etlknfdzg5ezzcwy4jqhqsyu7e", "aws_cognito_identity_pool_id": "us-east-1:a2d5d29b-d69d-46d6-81c3-c6dc71323225", "aws_cognito_region": "us-east-1", "aws_user_pools_id": "us-east-1_eDAImGHL9", "aws_user_pools_web_client_id": "4uj0jgf4p8m3au9h8u6g429111", "oauth": {}, "aws_cognito_username_attributes": [], "aws_cognito_social_providers": [], "aws_cognito_signup_attributes": [ "GIVEN_NAME", "FAMILY_NAME", "BIRTHDATE", "PHONE_NUMBER" ], "aws_cognito_mfa_configuration": "OFF", "aws_cognito_mfa_types": [], "aws_cognito_password_protection_settings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [ "REQUIRES_LOWERCASE", "REQUIRES_UPPERCASE", "REQUIRES_NUMBERS", "REQUIRES_SYMBOLS" ] }, "aws_cognito_verification_mechanisms": [ "PHONE_NUMBER" ], "aws_user_files_s3_bucket": "reelfeelmedia", "aws_user_files_s3_bucket_region": "us-east-1" };
export default awsmobile;
Manual configuration
No response
Additional configuration
No response
Mobile Device
iPhone 12
Mobile Operating System
iOS 17
Mobile Browser
N/A
Mobile Browser Version
N/A
Additional information and screenshots
No response