Comments (4)
@rapgodnpm I see the code where you are initiating updateUserAttributes
. Could you please also share the code snippet where the confirmation happens?
In the example that you have shared, I don't see confirmation of the attribute being done.
This behaviour usually happens when the attribute is left in an unconfirmed state.
from amplify-swift.
@rapgodnpm I see the code where you are initiating
updateUserAttributes
. Could you please also share the code snippet where the confirmation happens? In the example that you have shared, I don't see confirmation of the attribute being done.This behaviour usually happens when the attribute is left in an unconfirmed state.
Sure, sorry, forgout about it:
onConfirmButtonPress: { code in
withAnimation {
isConfirmationLoading = true
}
defer {
withAnimation {
isConfirmationLoading = false
}
}
Task {
do {
try await authApi.confirmEditAuthAttributes(
for: .email,
confirmationCode: code
)
} catch {
withAnimation {
errorMessage = "invalid-code".localized
isError = true
}
print(error)
}
Task {@MainActor in
value = temporaryValue
}
close()
}
}
And the autApi.confirmEditAuthAttributes
:
func confirmEditAuthAttributes(for userAttribute: AuthUserAttributeKey, confirmationCode: String) async throws -> Void {
try await Amplify.Auth.confirm(userAttribute: userAttribute, confirmationCode: confirmationCode)
}
When I use it from the app or the simulator I receive the code then I confirm the attribute. Also in the cognito console ui I can see the new email, I can see that it's verified as well yet I can only sign in using the sub id.
from amplify-swift.
Thanks for providing this information. Could you also provide the following 3 things:
- Verbose logs when you see the user not found error.
- Verbose logs when change the email.
- Verbose logs when successfully sign in using sub..
You can enable verbose logging to the console by doing this before calling Amplify.configure
:
Amplify.Logging.logLevel = .verbose
from amplify-swift.
Interesting, while trying to give you these logs it worked... to be honest I was on an older version and did update before submitting the ticket but didn't think to re-test it to see if it reproduces. To me, it seemed that it was more related to cognito than the packages but guess I was wrong.
Sorry for wasting your time and thank you for your help. If others encounter this please update to the latest version
from amplify-swift.
Related Issues (20)
- Allow Retrieval of Pinpoint EndpointId HOT 4
- Amplify.Auth.SignIn() is taking > 4 seconds to complete HOT 9
- Add the ability to replay failed mutations HOT 1
- Edit x-amz- headers from custom interceptor HOT 7
- Publish a Carthage-compatible xcframework HOT 2
- Realtime update not working on Amplify.DataStore.observeQuery HOT 23
- FetchAuthSession error does not provide correct AuthError on refresh token expired HOT 8
- Newest Amplify framework does not build with Xcode 15.3 beta 2 HOT 12
- Error: Command failed with exit code 1: /Users/atk/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-config --path=... HOT 4
- DataStore Bug please resolve HOT 3
- fetchDevices does not return devices name HOT 6
- Memory leaks on web sockets: each `DataStore.start()` add new web sockets but old ones remain active. use Starscream 4.0.6 HOT 5
- memory leak in `ModelSyncedEventEmitter` HOT 2
- Endless retry of mutation request when server responds with 401 error code HOT 2
- Version 2.25.7 & 2.26.0 have Package Resolution Failed HOT 5
- Cannot return null for non-nullable type: \'AWSDateTime\' within parent (/onUpdateImbybe/createdAt)" HOT 3
- Update aws-crt-swift dependency to fix a crash HOT 7
- Updating model attribute using Amplify.API.Query HOT 3
- visionOS AWSS3StoragePlugin Compilation Issue HOT 7
- visionOS Unable to fetch/update AuthUserAttribute HOT 9
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-swift.