#How to redirect unauthenticated without ...
1 messages ยท Page 1 of 1 (latest)
in your page you can check:
if (!isLoading && !user.authenticated){
return null;
}
right before your main return
stills the same
that authenticated from (user.authenticated) where it comes from
i've added this
got this error
Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.
this is my page
what dows useSWR do?
Is it wrong ?
the data fetching is OK, but I don't know the hook
If is writed right
https://next-auth.js.org/
give it a try ๐
Im scared of it
It's been a week trying to make it work, and im in the finish line
To try something new
I dont know how to make it work, on api, based token
I've read all docs