How to add Google auth / login to a website in replit

Question: Is there any simple way to get Google Login to your website?

I currently have this :

But seems complicated.

I run simple single page website

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

code snippet