I have build a google authentication as shown in this blog.
https://jorgecf.github.io/2020/04/18/google-oauth-angular
The problem is that it always shows an pop up