We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5154ed6 commit 86556a3Copy full SHA for 86556a3
packages/auth/src/core/user/user_impl.ts
@@ -140,13 +140,15 @@ export class UserImpl implements UserInternal {
140
}
141
142
_clone(auth: AuthInternal): UserInternal {
143
- return new UserImpl({
+ const newUser = new UserImpl({
144
...this,
145
- createdAt: this.metadata.creationTime,
146
- lastLoginAt: this.metadata.lastSignInTime,
147
auth,
148
stsTokenManager: this.stsTokenManager._clone()
149
- });
+ })
+
+ newUser.metadata._copy(this.metadata)
150
151
+ return newUser;
152
153
154
_onReload(callback: NextFn<APIUserInfo>): void {
0 commit comments