Config passed to gapi.auth2.init
: https://developers.google.com/identity/sign-in/web/reference#gapiauth2initparams
Any error from initializing gapi
libraries
Boolean flag indicating that the gapi.auth2
library has loaded
Boolean flag indicating that the gapi
object has loaded
The ID of the element in which to render the sign-in button.
An object containing the settings to use to render the button.
The height of the button in pixels (default: 36).
Display long labels such as "Sign in with Google" rather than "Sign in" (default: false
). When you use long titles, you should increase the width of the button from its default.
The scopes to request when the user signs in (default: profile
).
The color theme of the button: either light
or dark
(default: light
).
The width of the button in pixels (default: 120).
The callback function to call when sign-in fails. This function takes no arguments (default: none).
The callback function to call when a user successfully signs in. This function must take one argument: an instance of gapi.auth2.GoogleUser
(default: none).
Loads the necessary gapi
libraries. This is simply a wrapper for the
various Auth Setup
methods described here: https://developers.google.com/identity/sign-in/web/reference#auth_setup
You must wrap your application with GApiProvider
to use any of
the hooks (useAuthentication
, useUsers
and useAuthroize
).
Render the default sign in button provided by gapi.signin2.render
Generated using TypeDoc
Config passed to
gapi.auth2.init
: https://developers.google.com/identity/sign-in/web/reference#gapiauth2initparams