'Integrating Google Sign-In into my web app problem

I have some problems to integrate Google Sign-In into my web application. I managed to log-in but when tried to log-out I get the following error : Uncaught TypeError: Cannot read properties of undefined (reading 'getAuthInstance').

I am using this : https://developers.google.com/identity/sign-in/web/sign-in



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source