-
How to redirect or perform actions when user is logged in? |
Beta Was this translation helpful? Give feedback.
Answered by
s0kil
Jan 31, 2021
Replies: 1 comment
-
Here it is: case currentUserOrNothing of
Just user -> redirectTo IndexAction
Nothing -> do
putStrLn "Do Another Thing Here"
redirectTo LoginAction Learn more about accessing current user |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
s0kil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here it is:
Learn more about accessing current user
There are also multiple redirect functions you might find useful