Socialid.events.onSessionSuccess

From Social ID Developers
Jump to: navigation, search

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"
 }
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox