소스 검색

feat: add logout for auth0 (#5545)

Co-authored-by: Pam Selle <pam@thewebivore.com>
Pam S 3 년 전
부모
커밋
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()}`
   }
 }