REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 838 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/express/lib/authentication/logout.handler.js
Text
Base64
const getLogoutPath = (admin) => { const { logoutPath, rootPath } = admin.options; const normalizedLogoutPath = logoutPath.replace(rootPath, ""); return normalizedLogoutPath.startsWith("/") ? normalizedLogoutPath : `/${normalizedLogoutPath}`; }; export const withLogout = (router, admin, auth) => { const logoutPath = getLogoutPath(admin); const { provider } = auth; router.get(logoutPath, async (request, response) => { if (provider) { try { await provider.handleLogout({ req: request, res: response }); } catch (error) { console.error(error); // fail silently and still logout } } request.session.destroy(() => { response.redirect(admin.options.loginPath); }); }); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
login.handler.d.ts
226 B
lrw-r--r--
2026-02-28 00:29:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
login.handler.js
4.41 KB
lrw-r--r--
2026-02-28 00:28:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
logout.handler.d.ts
222 B
lrw-r--r--
2026-02-28 00:29:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
logout.handler.js
838 B
lrw-r--r--
2026-02-28 00:28:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
protected-routes.handler.d.ts
156 B
lrw-r--r--
2026-02-28 00:29:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
protected-routes.handler.js
372 B
lrw-r--r--
2026-02-28 00:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
refresh.handler.d.ts
223 B
lrw-r--r--
2026-02-28 00:29:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
refresh.handler.js
1.45 KB
lrw-r--r--
2026-02-28 00:28:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).