i

Please enable JavaScript to view this site.

Documentation 8.7

Access methods are used to retrieve items or access specific functionalities.

Access Method

 

 

Name

Description

Result

$d.createGoogleLoginButton(config, container, onLogin, onNewUSer)

Creates the Google login button in a specific container. After successfully executing the login, it redirects to the home page configured in the application where it is running.

 

Parameters

Object config: Object specified by Google to configure the button

DomElement string container: Container where the Google button will be displayed

Callback onLogin: Function that is executed when the user logs in

Callback noNewUSer: Function that is executed when a new user is registered

-

$d.createGoogleLoginButtonWithoutRedirection(config, container, onLogin, onNewUSer)

Creates the Google login button in a specific container. After successfully executing the login, it does not perform any redirection.

 

Parameters

Object config: Object specified by Google to configure the button

DOMElement string container: Container where the Google button will be displayed

Callback onLogin: Function that is executed when the user logs in

Callback noNewUSer: Function that is executed when a new user is registered

-

$d.logout()

Logs out of the current user.

-

 

Send us your comments
Share on X Share on Linkedin Send by Email Print