From ca003abf0197388bae8b88f6ff5269c98c874d25 Mon Sep 17 00:00:00 2001 From: Devin Cowan Date: Wed, 10 Jan 2024 12:03:10 -0500 Subject: [PATCH] improve login error notification --- app/frontend/src/auth.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/frontend/src/auth.js b/app/frontend/src/auth.js index 4a765cf9..6a7b9418 100644 --- a/app/frontend/src/auth.js +++ b/app/frontend/src/auth.js @@ -49,7 +49,14 @@ export async function logIn(callback) { }) callback?.() } else { - alert('error logging in') + console.log(userinfo.status, userinfo.statusText) + alertStore.displayAlert({ + title: 'Error Logging In', + text: `We had difficulty logging you in. If you continue to encounter this issue, please contact help@cuahsi.org.`, + type: 'success', + closable: true, + duration: 3 + }) } event.source.close() })