Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
v2.2.4
*fix(auth): switch back to using signInWithEmailAndPassword for email auth - #467
  • Loading branch information
prescottprue committed Nov 27, 2018
commit 84c00cfff72443f18ed0d326038c2b53161ece7f
101 changes: 62 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-redux-firebase",
"version": "2.2.3",
"version": "2.2.4",
"description": "Redux integration for Firebase. Comes with a Higher Order Components for use with React.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
11 changes: 1 addition & 10 deletions src/utils/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,7 @@ export const getLoginMethodAndParams = (firebase, creds) => {
}

// Email/Password Auth
// Check for new sign in method (see #484 for more info)
const emailPasswordAuth = firebase.auth()
.signInAndRetrieveDataWithEmailAndPassword
if (emailPasswordAuth) {
return {
method: 'signInAndRetrieveDataWithEmailAndPassword',
params: [email, password]
}
}

// Note: usage of signInAndRetrieveDataWithEmailAndPassword removed since it is deprecated (see #484 for more info)
return { method: 'signInWithEmailAndPassword', params: [email, password] }
}

Expand Down