You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@quantuminformation I think we can make it an extra chapter possibly. It's not hard to do but it does complicate the app a bit more by having to create an extra screen.
But in case other folks find this thread here are some ideas on how to implement it.
Get the current Cognito user object by calling getCurrentCognitoUser from src/libs/awsLib.js
Ensure that user is authenticated by calling getUserToken again from src/libs/awsLib.js
Finally, use the Cognito JS SDK changePassword to change the user's password to the new one they set.
These are the steps to change their password using the Cognito JS SDK but you still need to create a form in React to ask your user to type in their old password and the new password.
Similar to red-gold/react-social-network#36
The text was updated successfully, but these errors were encountered: