<#1072905050399191082>
I'm getting this issue while trying to access th user by account.get()
This means that there is no active session for the user
Thanks for the help it's solved now
I do have one more doubt, this is my directory in my next.js 13 application and I'm using useEffect to chekc 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
if I'm not wrong, loading.tsx is used when data is being fetched from the server-side.
First thing I recommend is to not use SSR with next (for now)
That being said, when you fetch data in the useEffect, you can have a local state [loading, setLoading] that changes based on whether all the data has been fetched, and use that to conditionally render a loading indicator.
👍 Thanks
Recommended threads
- Re-connect site to domain verification f...
I have mistakenly deleted appwrite site without removing domain. Now I created same site and want to re-connect my domain. It gives this error while verify. How...
- SSR share session to client using custom...
Hi, so I was trying to get a hang of using SSR and using realtime updates in the same time which is done easiest if you have a custom domain in Appwrite and as ...
- Custom Domains with Cloudflare for SaaS ...
Hi! I'm using Appwrite Cloud Sites with Cloudflare for SaaS for multi-tenant custom domains. Problem: Custom domain: donate.pekeetong.my → CNAME to sites.dono...