Replies: 1 comment
-
Answered in #276 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried following the guide for
FormStrategy
I have a real temporary API that just returns a token to see it the library would work. However upon further testingauthenticator.isAuthenticated
is always returningnull
even though I explicitly tell it to return everything from the API, I can also console log the return object.Also when I use the redirect options of the library it goes into an infinite loop of redirection. I have a loader that verifies if the
isAuthenticated
returns the item redirect it to a protected route, and the protected layout has a loader similar but redirects you to the unprotected page.I have some sample code here: #276 I closed the discussion thinking I solved the issue but apparently I was able to solve it without using the help of the library by access the data needed on the request itself.
Beta Was this translation helpful? Give feedback.
All reactions