File tree 2 files changed +6
-0
lines changed
packages-exp/auth-exp/src/core
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ export {
197
197
export { getIdToken , getIdTokenResult } from './user/id_token_result' ;
198
198
export { unlink } from './user/link_unlink' ;
199
199
export { getAdditionalUserInfo } from './user/additional_user_info' ;
200
+ export { userFromJSON } from './user/user_impl' ;
200
201
201
202
// Non-optional user methods.
202
203
export { reload } from './user/reload' ;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { FinalizeMfaResponse } from '../../api/authentication/mfa';
26
26
import { Auth } from '../../model/auth' ;
27
27
import { IdTokenResponse } from '../../model/id_token' ;
28
28
import { MutableUserInfo , User , UserParameters } from '../../model/user' ;
29
+ import { _castAuth } from '../auth/auth_impl' ;
29
30
import { AuthErrorCode } from '../errors' ;
30
31
import { PersistedBlob } from '../persistence' ;
31
32
import { _assert } from '../util/assert' ;
@@ -317,3 +318,7 @@ export class UserImpl implements User {
317
318
return user ;
318
319
}
319
320
}
321
+
322
+ export function userFromJSON ( auth : externs . Auth , json : string ) : externs . User {
323
+ return UserImpl . _fromJSON ( _castAuth ( auth ) , JSON . parse ( json ) ) ;
324
+ }
You can’t perform that action at this time.
0 commit comments