Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How can I get the user ID after a user sign up/ sign in with AWS Amplify User pools withAuthenticator?

$
0
0

I'm writing an app in React Native that uses Amplify User Pools for the user to sign in/up with the withAuthenticator method. My intention is to use a unique user id to create a User object in my backend so I can create a new user or get the details of the user who just signed in. My understanding is that a unique userId I could use would be the Identity Pool Identifier.

My flow would be:

  • Show signIn/signUp screen
  • Once the user signs in I grab his unique identifier (Identity Pools Identifier?)
  • Get the user details for a user with that id from the backend
  • If no user with that id exists, create a new one with it.

It would seem quite standard, but I guess it's not because I can't find anywhere any clear detail of such an implementation. I would expect withIdentifier to have a sort of callback with the signed in user details, but I can't find anything of the sort.Am I missing something here?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>