#[SOLVED] Check auth & redirection in Next.js 13 App Router with appwrite

3 messages · Page 1 of 1 (latest)

signal anchor
#

I do have one more doubt, this is my directory in my next.js 13 application and I'm using useEffect to check for auth and redirection but due to which if someone tries to access protected page, the content is visible for few seconds after that useEffect redirects if not authenticated, Instead I want to show loading state from loading.tsx file of protected route until it will check authentication

unique grotto
signal anchor
#

Got it, Thanks for the help