summaryrefslogtreecommitdiff
path: root/src/Auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Auth.js')
-rw-r--r--src/Auth.js2
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;