fix: authenticate terminal WebSockets synchronously on Bun

This commit is contained in:
Bohdan Triapitsyn
2026-09-03 11:49:34 +03:00
parent e885afbe89
commit dfb3c614c8
4 changed files with 57 additions and 26 deletions
+3 -1
View File
@@ -984,7 +984,9 @@ export const createUiAuth = ({
handlePasskeyList,
handlePasskeyRevoke,
handleResetAuth,
ensureSessionToken: async (req, _res) => {
ensureSessionToken: (req, _res) => {
const urlAuth = authenticateUrlAuthToken(req);
if (urlAuth) return clientSessionToken(urlAuth);
return resolveAuthenticatedSessionToken(req);
},
dispose,