Explorar o código

feat: add logout for auth0 (#5545)

Co-authored-by: Pam Selle <pam@thewebivore.com>
Pam S %!s(int64=2) %!d(string=hai) anos
pai
achega
8290e86aaf
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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()}`
   }
 }