Open natuan62 opened 2 weeks ago
Seem this error occur because my lambda run time > 5 seconds. And it trigger twice
And in second trigger, adminLinkProviderForUser() cause error because in first time, it linked success
Hey, @natuan62 👋. While there are some lambdas that are not supported by the Social Sign In (noted here in docs), it looks like your sign-in is working and lambda is being triggered. I'm wondering if the issue is on the CDK API side for Cognito and will try to reproduce this/dig further. Just to make sure we can reproduce this properly and understand the use case, are you just trying to link your users together that have used multiple social providers?
@cwomack Yes, I'm trying link current account with multi social (google, facebook...)
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify CLI
Environment information
Describe the bug
Expected behavior
adminLinkProviderForUser works fine and not return error
Reproduction steps
1/ Create account with amplif-js and not confirm code
2/ with preSignUp lamda, confirm user and set email_verified = true before adminLinkProviderForUser
3/ Although adminLinkProviderForUser return error but this account seem link success
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
No response