Skip to content

Commit 03f53fa

Browse files
authored
feat(auth): updated credential login to use new firebase method - @oacstevens
feat(auth): Updated credential login to use new firebase method
2 parents 7d917c8 + 73d296d commit 03f53fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utils/auth.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ export const getLoginMethodAndParams = (firebase, creds) => {
7878
credential
7979
} = creds
8080
if (credential) {
81+
const credentialAuth = firebase.auth().signInAndRetrieveDataWithCredential
82+
83+
if (credentialAuth) {
84+
return {
85+
method: 'signInAndRetrieveDataWithCredential',
86+
params: [credential]
87+
}
88+
}
8189
return { method: 'signInWithCredential', params: [credential] }
8290
}
8391
if (provider) {

0 commit comments

Comments
 (0)