File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
packages-exp/auth-exp/src/core/user Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import * as externs from '@firebase/auth-types-exp' ;
19
19
20
- import {
21
- getAccountInfo ,
22
- ProviderUserInfo
23
- } from '../../api/account_management/account' ;
20
+ import { getAccountInfo , ProviderUserInfo } from '../../api/account_management/account' ;
24
21
import { User } from '../../model/user' ;
25
22
import { ProviderId } from '../providers' ;
26
23
import { assert } from '../util/assert' ;
@@ -54,14 +51,14 @@ export async function _reloadWithoutSaving(user: User): Promise<void> {
54
51
Object . assign ( user , updates ) ;
55
52
}
56
53
57
- export async function reload ( user : externs . User ) : Promise < void > {
58
- const userInternal : User = user as User ;
59
- await _reloadWithoutSaving ( userInternal ) ;
54
+ export async function reload ( externUser : externs . User ) : Promise < void > {
55
+ const user : User = externUser as User ;
56
+ await _reloadWithoutSaving ( user ) ;
60
57
61
58
// Even though the current user hasn't changed, update
62
59
// current user will trigger a persistence update w/ the
63
60
// new info.
64
- return userInternal . auth . updateCurrentUser ( userInternal ) ;
61
+ return user . auth . updateCurrentUser ( user ) ;
65
62
}
66
63
67
64
function mergeProviderData (
You can’t perform that action at this time.
0 commit comments