I'm using the built-in Authenticator import to login users, and it's working as it should to log in, but I'd like to save the users email and username to my database upon them creating an account. How would I go about getting the users inputs and saving it to my database? If anyone can help point me in the right direction it would be greatly appreciated.
#✅ - How to save the users email and username to DataStore
13 messages · Page 1 of 1 (latest)
Why would you want to do that?
It’s a social media site so I want to be able to display the users usernames on their profile from the database
I don't think that saving the password is that necessary for that use case.
Not the password, I said just the email and username
Yea I figured last night that I’d have them fill out their user profile upon sign in instead.
👀 Thanks so much. I’ll give it a shot when I get to work on it.
You could do that during the post confirmation lambda trigger with cognito to send data from the lambda to the database, but as Bryanne said, can also just get the details from Cognito itself as they're stored there
I appreciate you both taking the time to help me out. Thanks so much.
✅ - How to save the users email and username to DataStore