Socialid.events.onLoginStart
From Social ID Developers
(Difference between revisions)
Dirceu.tiegs (Talk | contribs) |
Dirceu.tiegs (Talk | contribs) |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | + | Triggered when a user starts the login process. | |
== Adding Handler == | == Adding Handler == |
Latest revision as of 20:15, 3 November 2014
Contents |
Description
Triggered when a user starts the login process.
Adding Handler
socialid.events.onLoginStart.addHandler(handler)
Event Data
event | onLoginStart | provider | Provider used in the login process. Can be "facebook", "twitter", "linkedin", or "gplus". |
---|
Example
Adding a handler for the onLoginStart event on Social Login:
socialid.events.onLoginStart.addHandler(function(data) { console.log("Website received onLoginStart: ", data); });
Example response object:
{ event: "onLoginStart", provider: "twitter" }