I am migrating to the new-ish google auth api based on google.accounts.id
and documented here https://developers.google.com/identity/gsi/web/guides/display-button
Using the old API I was able to check if a user was logged in before displaying the login button using gapi.auth2.getAuthInstance().isSignedIn.get()
.
What is the equivalent with this new google.accounts.id
approach?