File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1425,12 +1425,8 @@ export class Auth implements IAuth {
1425
1425
return this . #app;
1426
1426
}
1427
1427
1428
- #user: User ;
1429
1428
get currentUser ( ) : User {
1430
- if ( ! this . #user) {
1431
- this . #user = User . fromNative ( this . native . getCurrentUser ( ) ) ;
1432
- }
1433
- return this . #user;
1429
+ return this . native ? User . fromNative ( this . native . getCurrentUser ( ) ) : null ;
1434
1430
}
1435
1431
1436
1432
get languageCode ( ) : string {
Original file line number Diff line number Diff line change @@ -1247,12 +1247,8 @@ export class Auth implements IAuth {
1247
1247
return this . #app;
1248
1248
}
1249
1249
1250
- #user: User ;
1251
1250
get currentUser ( ) : User {
1252
- if ( ! this . #user) {
1253
- this . #user = User . fromNative ( this . native . currentUser ) ;
1254
- }
1255
- return this . #user;
1251
+ return this . native ? User . fromNative ( this . native . currentUser ) : null ;
1256
1252
}
1257
1253
1258
1254
get languageCode ( ) : string {
You can’t perform that action at this time.
0 commit comments