浏览代码

feat: add logout for auth0 (#5545)

Co-authored-by: Pam Selle <pam@thewebivore.com>
Pam S 2 年之前
父节点
当前提交
8290e86aaf
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      server/modules/authentication/auth0/authentication.js

+ 3 - 0
server/modules/authentication/auth0/authentication.js

@@ -27,5 +27,8 @@ module.exports = {
         }
       }
       ))
+  },
+  logout (conf) {
+    return `https://${conf.domain}/v2/logout?${new URLSearchParams({ client_id: conf.clientId, returnTo: WIKI.config.host }).toString()}`
   }
 }