Socialid.events.onSessionError

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
Renato.neves (Talk | contribs)
(Created page with "== Description == Triggered when an error occurs during the session creation process. == Adding Handler == socialid.events.onSessionError.addHandler(handler) == Event Data...")

Latest revision as of 18:16, 28 January 2019

Contents

Description

Triggered when an error occurs during the session creation process.

Adding Handler

socialid.events.onSessionError.addHandler(handler)

Event Data

event onSessionError
code The error code returned during the login process.

Error codes

not_found The connection identifier was not found.
internal_server_error An unknown error occurred.

Example

Adding a handler for the onSessionError event:

 socialid.events.onSessionError.addHandler(function(data) {
   console.log("Website received onSessionError: ", data);
 });

Example response object:

 {
   event: "onSessionError",
   code: "not_found"
 }
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox