forked from soumak77/firebase-mock
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Auth token shows user authenticating in the future" if authTime not specified #67
Comments
I added this PR to try and resolve: #66 |
Found a workaround until #66 gets merged: await firebaseAdmin.auth().createUser({
// Your normal fields here
uid,
email,
password,
emailVerified: true,
// Workaround
_tokenValidity: {
issuedAtTime: new Date(),
authTime: new Date(1970, 1, 1),
expirationTime: new Date(3000, 1, 1),
},
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If
authTime
is not specified when creating aMockFirebaseUser
, the code has a race condition when setting the date at https://github.com/dmurvihill/firebase-mock/blob/master/src/user.js#L170.Added inline comments on the code from that file
The text was updated successfully, but these errors were encountered: