File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ export class AngularFireAuth extends ReplaySubject<FirebaseAuthState> {
119
119
}
120
120
}
121
121
122
- public logout ( ) : void {
123
- this . _authBackend . unauth ( ) ;
122
+ public logout ( ) : Promise < void > {
123
+ return this . _authBackend . unauth ( ) ;
124
124
}
125
125
126
126
public getAuth ( ) : FirebaseAuthState {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export abstract class AuthBackend {
11
11
: Promise < FirebaseAuthState > ;
12
12
abstract onAuth ( ) : Observable < FirebaseAuthState > ;
13
13
abstract getAuth ( ) : FirebaseAuthState ;
14
- abstract unauth ( ) : void ;
14
+ abstract unauth ( ) : Promise < void > ;
15
15
abstract createUser ( credentials : EmailPasswordCredentials ) : Promise < FirebaseAuthState > ;
16
16
abstract getRedirectResult ( ) : Observable < firebase . auth . UserCredential > ;
17
17
}
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ export class FirebaseSdkAuthBackend extends AuthBackend {
67
67
return observeOn . call ( authState , new ZoneScheduler ( Zone . current ) ) ;
68
68
}
69
69
70
- unauth ( ) : void {
71
- Promise . resolve ( this . _fbAuth . signOut ( ) ) ;
70
+ unauth ( ) : Promise < void > {
71
+ return < Promise < void > > this . _fbAuth . signOut ( ) ;
72
72
}
73
73
74
74
authWithCustomToken ( token : string ) : Promise < FirebaseAuthState > {
You can’t perform that action at this time.
0 commit comments