Socialid.events.onLoginStart
(Difference between revisions)
Dirceu.tiegs (Talk | contribs) m |
Dirceu.tiegs (Talk | contribs) |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | + | Executed when a user starts the login process. | |
== Adding Handler == | == Adding Handler == | ||
Line 14: | Line 14: | ||
|+ | |+ | ||
! align="left" width="200px" | provider | ! align="left" width="200px" | provider | ||
− | | | + | | Provider used in the connection. Can be "facebook", "twitter", "linkedin", or "gplus". |
|} | |} | ||
== Example == | == Example == | ||
− | + | Adding a handler for the onLoginStart event on Social Login: | |
socialid.events.onLoginStart.addHandler(function(data) { | socialid.events.onLoginStart.addHandler(function(data) { | ||
Line 25: | Line 25: | ||
}); | }); | ||
− | + | Example response object: | |
{ | { |
Revision as of 20:04, 3 November 2014
Contents |
Description
Executed when a user starts the login process.
Adding Handler
socialid.events.onLoginStart.addHandler(handler)
Event Data
event | onLoginStart | provider | Provider used in the connection. 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" }