haerinn
How to ideally protecting routes with Layout
Thank you for making it more clear with the better understanding.
Unfortuntly i've tried and because im using
getSession()
from @auth/core/..
, so didnt really get the benefit from the locals
. ( Might be using the useSession()
from vinxi soon ).
I already used the "no" wrapper query authorize()
, but for testing purpose i found interesting case (for me) when calling both getPostById()
& getPosts()
with the query (🧙♂️) idea at the same time, the log run once n that feels strange.
But i got the point, sorry too much editing (my bad)4 replies