diff options
| author | LLLL Colonq <llll@colonq> | 2024-11-18 06:18:25 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2024-11-18 06:18:25 -0500 |
| commit | 5b0cc776ae85cd68dee0da87302c4e3b180a5357 (patch) | |
| tree | 62d237a0e4e9c45dbec86c438dadbe7980b38184 /src/Auth.js | |
| parent | 8b635c5d44dc8841850a5bba21ded3bd443d22b9 (diff) | |
Nicer errors, actually redirect
Diffstat (limited to 'src/Auth.js')
| -rw-r--r-- | src/Auth.js | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
