apiref
@dtinth/google-sign-in-controller@0.0.4-2

GoogleSignInController  Class

Loads the Google APIs client library and provides a simple interface to Google Sign-In.

Signature

export declare class GoogleSignInController 

Constructors

ConstructorDescription
(constructor)(clientId)Initializes the GoogleSignInController.

Properties

PropertyTypeDescription
clientIdstring
currentUsergapi.auth2.GoogleUser | undefinedThe current user.

Methods

MethodDescription
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.