Replies: 1 comment
-
|
Because Remix Auth doesn't access your session storage anymore, so there's no way to know if a user is authenticated or not. You can easily add it yourself. async function isAuthenticated(request: Request) {
let session = await sessionStorage.getSession(request.headers.get("cookie"))
if (session.has("userId")) return session.get("userId")
return null
} |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'M migrating from remix to react-router v7
and surprised that isAuthenticated was removed....
why?
Beta Was this translation helpful? Give feedback.
All reactions