Skip to content
Prev Previous commit
Next Next commit
Login now returns auth response as well as profile (solve #106).
  • Loading branch information
prescottprue committed Apr 2, 2017
commit 88731661caa266f18697b79a27c61a7cffa0f0e9
2 changes: 1 addition & 1 deletion docs/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default firebaseConnect()(SomeComponent)


##### Returns
[**Promise**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) with authData in case of success or the error otherwise.
[**Promise**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) with an object containing profile, user, (also credential if using oAuth provider) in case of success or the error otherwise.

##### Examples

Expand Down
1 change: 1 addition & 0 deletions src/actions/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ export const login = (dispatch, firebase, credentials) => {
providerData: user.providerData
}
)
.then((profile) => ({ profile, ...userData }))
})
.catch(err => {
dispatchLoginError(dispatch, err)
Expand Down