Google LogIn Implementation

I have implemented the Google login button after referring to these two documents:

  1. Google Sign-In Free Plugin
  2. Let’s Implement OAuth2 Logins with Google: A How-To

I successfully added that button to the login page by modifying the login.component.ts and login.component.html files. When the Google button is clicked, it redirects to the Google login page. After clicking on the correct email ID, it returns to the /login page. However, I discovered that the session is not getting created; it remains {"active":false,"appStatus":{"installed":true,"locked":true}}.

How can I fix this issue and reach the homepage? Please guide me; it will be a great help.

Maybe the plugin writer @cherub-chum could guide you here.