Log authentication options on the client.

This commit is contained in:
2025-12-04 05:07:44 +00:00
parent 0c3e0d3fa5
commit 0e1b9f529b
+1
View File
@@ -58,6 +58,7 @@ export async function authenticate() {
const ws = await aWebSocket(await makeUrl('/auth/ws/authenticate'))
try {
const res = await ws.receive_json()
console.log('Authentication options:', res)
// status field present means error
if (res.status) {
throw new Error(res.detail || `Authentication failed: ${res.status}`)