redux-auth
redux-auth copied to clipboard
Outdated documentation (email-sign-up)
https://github.com/lynndylanhurley/redux-auth/blob/master/docs/api-expectations/email-sign-up.md#success-response-body-example
Documentation says that successful payload should be:
{
"status": "success"
}
But, reverse engineering (thanks to the Ng Token Auth project) tells me :
{
"success": true,
"data": {}
}
Thank you Guibod
I found you can also add an email address to plug into the dialog
res.json({
"success": true,
"data": {
"email": "[email protected]"
}
});
[emailSignUpActions.EMAIL_SIGN_UP_COMPLETE]: (state, {user}) => state.merge({
emailSignUpSuccessModalVisible: true,
emailSignUpAddress: user.email
}),
Can you send a PR please?