Socialid.events.onLogout

From Social ID Developers
Revision as of 13:50, 5 November 2020 by Ivan.filho (Talk | contribs)
Jump to: navigation, search

Contents

Description

Triggered when the user logs out.

After a successfully logout, this event will also trigger the Connection ID removal, based on connectionStorageType option:

cookie The Connection ID Cookie will be destroyed.
localStorage The Connection ID Local Storage item will be removed.
sessionStorage The Connection ID Session Storage item will be removed.


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