GoogleSignInController Class
Loads the Google APIs client library and provides a simple interface to Google Sign-In.
Signature
export declare class GoogleSignInController
Constructors
Constructor | Description |
---|---|
(constructor)(clientId) | Initializes the GoogleSignInController. |
Properties
Property | Type | Description |
---|---|---|
clientId | string | |
currentUser | gapi.auth2.GoogleUser | undefined | The current user. |
Methods
Method | Description |
---|---|
getUserInfo() | Returns a simplified version of the current user. |
onCurrentUserChanged(callback) | Registers a callback to be called when the current user changes. |
signIn() | Sign in. |
signOut() | Sign out. |