User Id different when login with user pool and when login with federate identity HELP ME

The user id when you log in with an email and password is different from when you log in with Facebook.

What do you recommend to list the user’s notes, regardless of the login method, in react-notes example app?

Thank you

Here is something that might be helpful - https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html