redux-auth icon indicating copy to clipboard operation
redux-auth copied to clipboard

Outdated documentation (email-sign-up)

Open Guibod opened this issue 9 years ago • 2 comments

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": {}
}

Guibod avatar Feb 29 '16 17:02 Guibod

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
  }),

djeeg avatar Jun 09 '16 21:06 djeeg

Can you send a PR please?

lynndylanhurley avatar Jul 17 '16 03:07 lynndylanhurley