Skip to content

Commit 092f4cb

Browse files
Update README.md (#323)
Add comment for Ionic Angular users to clarify two unknown variables auth and afAuth.
1 parent 0a8ae1e commit 092f4cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ sign in function
9595
```ts
9696
async googleSignIn() {
9797
let googleUser = await GoogleAuth.signIn();
98+
99+
/*
100+
If you use Firebase you can forward and use the logged in Google user like this:
101+
*/
98102
const credential = auth.GoogleAuthProvider.credential(googleUser.authentication.idToken);
99103
return this.afAuth.auth.signInAndRetrieveDataWithCredential(credential);
100104
}

0 commit comments

Comments
 (0)