Socialid.events.onSessionSuccess
From Social ID Developers
Revision as of 18:13, 28 January 2019 by Renato.neves (Talk | contribs)
Contents |
Description
Triggered when user ends the session creation process successfully.
Adding Handler
socialid.events.onSessionSuccess.addHandler(handler)
Event Data
event | onSessionSuccess | connection_id | Connection identifier of the user's session. | callback_url | Callback URL configured on the social login application. |
---|
Example
Adding a handler for the onSessionSuccess event:
socialid.events.onSessionSuccess.addHandler(function(data) { console.log("Website received onSessionSuccess: ", data); });
Example response object:
{ event: "onSessionSuccess", connection_id: "13d7555531d285adc34e21e7a9c583967c7a85507deee61fb6f1eeffc656409w", callback_url: "https://sid-examples.herokuapp.com/social_logins" }