8000 removed createdAt and lastLoginAt from default firestore profile · srsedev/react-redux-firebase@65cda3a · GitHub
[go: up one dir, main page]

Skip to content

Commit 65cda3a

Browse files
committed
removed createdAt and lastLoginAt from default firestore profile
1 parent 362f992 commit 65cda3a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/actions/auth.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { isArray, isString, isFunction, forEach, omit } from 'lodash'
22
import { actionTypes } from '../constants'
33
import { populate } from '../helpers'
4-
import { stringToDate } from '../utils'
54
import {
65
getLoginMethodAndParams,
76
updateProfileOnRTDB,
@@ -227,9 +226,7 @@ export const createUserProfile = (dispatch, firebase, userData, profile) => {
227226
// Remove unnecessary auth params (configurable) and preserve types of timestamps
228227
newProfile = {
229228
...omit(userDataObject, config.keysToRemoveFromAuth),
230-
avatarUrl: userDataObject.photoURL, // match profile pattern used for RTDB
231-
createdAt: stringToDate(userDataObject.metadata.creationTime),
232-
lastLoginAt: stringToDate(userDataObject.metadata.lastSignInTime)
229+
avatarUrl: userDataObject.photoURL // match profile pattern used for RTDB
233230
}
234231
}
235232

0 commit comments

Comments
 (0)
0