Log authentication options on the client.
This commit is contained in:
1 parent
0c3e0d3fa5
commit
0e1b9f529b
1 file changed
+1
@@ -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}`)
|
||||
|
||||
Reference in new issue
Block a user