From 5b0cc776ae85cd68dee0da87302c4e3b180a5357 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 18 Nov 2024 06:18:25 -0500 Subject: Nicer errors, actually redirect --- src/Auth.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Auth.js') diff --git a/src/Auth.js b/src/Auth.js index 246052c..3c077ce 100644 --- a/src/Auth.js +++ b/src/Auth.js @@ -50,6 +50,8 @@ export const _clearSessionCookie = () => { }; export const _getRedirect = (Just) => (Nothing) => (x) => () => { + const data = x["data"]; + if (!data) return Nothing; const r = x["data"]["redirect"]; if (r) return Just(r); return Nothing; -- cgit v1.2.3