diff options
Diffstat (limited to 'src/Auth.js')
| -rw-r--r-- | src/Auth.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Auth.js b/src/Auth.js index 9d5060c..246052c 100644 --- a/src/Auth.js +++ b/src/Auth.js @@ -49,6 +49,8 @@ export const _clearSessionCookie = () => { document.cookie = "authelia_session=; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=None; Secure"; }; -export const getRedirect = (x) => { - return x.redirect; +export const _getRedirect = (Just) => (Nothing) => (x) => () => { + const r = x["data"]["redirect"]; + if (r) return Just(r); + return Nothing; }; |
