Socialid.events.onSessionError

From Social ID Developers
Revision as of 18:16, 28 January 2019 by Renato.neves (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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