Socialid.events.onLogout
(Difference between revisions)
Renato.neves (Talk | contribs) (Created page with "== Description == Triggered when the user logs out. == Adding Handler == socialid.events.onLogout.addHandler(handler) == Event Data == {| ! align="left" width="200px" | e...") |
Ivan.filho (Talk | contribs) |
||
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 == |
Revision as of 13:50, 5 November 2020
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" }