Log authentication options on the client.
This commit is contained in:
@@ -58,6 +58,7 @@ export async function authenticate() {
|
|||||||
const ws = await aWebSocket(await makeUrl('/auth/ws/authenticate'))
|
const ws = await aWebSocket(await makeUrl('/auth/ws/authenticate'))
|
||||||
try {
|
try {
|
||||||
const res = await ws.receive_json()
|
const res = await ws.receive_json()
|
||||||
|
console.log('Authentication options:', res)
|
||||||
// status field present means error
|
// status field present means error
|
||||||
if (res.status) {
|
if (res.status) {
|
||||||
throw new Error(res.detail || `Authentication failed: ${res.status}`)
|
throw new Error(res.detail || `Authentication failed: ${res.status}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user