From 8290e86aaf362d53cbc573abdc78e7740dd72a02 Mon Sep 17 00:00:00 2001
From: Pam S <pamela.selle@gmail.com>
Date: Tue, 16 Aug 2022 16:37:19 -0400
Subject: [PATCH] feat: add logout for auth0 (#5545)

Co-authored-by: Pam Selle <pam@thewebivore.com>
---
 server/modules/authentication/auth0/authentication.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server/modules/authentication/auth0/authentication.js b/server/modules/authentication/auth0/authentication.js
index 9eade81a..388139bc 100644
--- a/server/modules/authentication/auth0/authentication.js
+++ b/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()}`
   }
 }
-- 
2.24.1