Socialid.events.onLogout

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
(Description)
 
Line 2: Line 2:
  
 
Triggered when the user logs out.
 
Triggered when the user logs out.
 
After a successfully logout, this event will also trigger the Connection ID removal, based on '''connectionStorageType''' option:
 
 
{|
 
! align="left" width="200px" | cookie
 
| The Connection ID Cookie will be destroyed.
 
|+
 
! align="left" width="200px" | localStorage
 
| The Connection ID Local Storage item will be removed.
 
|+
 
! align="left" width="200px" | sessionStorage
 
| The Connection ID Session Storage item will be removed.
 
|}
 
 
  
 
== Adding Handler ==
 
== Adding Handler ==

Latest revision as of 13:58, 5 November 2020

Contents

Description

Triggered when the user logs out.

Adding Handler

socialid.events.onLogout.addHandler(handler)

Event Data

event onLogout

Example

Adding a handler for the onLogout event:

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

Example response object:

 {
   event: "onLogout"
 }
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox