We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 664a156 commit c823de0Copy full SHA for c823de0
src/providers/auth.ts
@@ -127,6 +127,10 @@ export class AngularFireAuth extends ReplaySubject<FirebaseAuthState> {
127
}
128
129
public getAuth(): FirebaseAuthState {
130
+ console.warn(`WARNING: the getAuth() API has changed behavior since adding support for Firebase 3.
131
+ This will return null for the initial value when the page loads, even if the user is actually logged in.
132
+ Please observe the actual authState asynchronously by subscribing to the auth service: af.auth.subscribe().
133
+ The getAuth method will be removed in future releases`);
134
return this._authBackend.getAuth()
135
136
0 commit comments