initialize method
Initializes the Sign In With Google client based on IdConfiguration.
The initialize
method creates a Sign In With Google client instance that
can be implicitly used by all modules in the same web page.
- You only need to call the
initialize
method once even if you use multiple modules (like One Tap, Personalized button, revocation, etc.) in the same web page. - If you do call the google.accounts.id.initialize method multiple times, only the configurations in the last call will be remembered and used.
You actually reset the configurations whenever you call the initialize
method, and all subsequent methods in the same web page will use the new
configurations immediately.
WARNING: The initialize
method should be called only once, even if you
use both One Tap and button in the same web page.
Method: google.accounts.id.initialize https://developers.google.com/identity/gsi/web/reference/js-reference#google.accounts.id.initialize
Implementation
external void initialize(IdConfiguration idConfiguration);