From 93b5a804dfce5b072445c4007223efd4e3eb260b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Wed, 31 Aug 2022 22:35:13 +0800 Subject: [PATCH] Added logout --- signin.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/signin.js b/signin.js index 2cd2a9a..a4a30e2 100644 --- a/signin.js +++ b/signin.js @@ -156,6 +156,13 @@ class Signin extends EventEmitter handler( this, eArgs ); } + Logout( params, handler ) + { + var [ url, data ] = this._endPointRes( "end_session_endpoint" ); + var eArgs = new SignInEventArgs({ "redirect": url, "data": data }); + handler( this, eArgs ); + } + _endPointRes( endpoint, handler ) { if( !this.spec )