Best Costume Authorization in MERN App #145362
Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello Pals,
I'm trying to implement best way to implement the Auth Authoriation in Next.js v14 and my Clinet is in Next.js and Server is outside of the Next App I'M Using App Router and Authorization with cookies
I set the Check Auth using Cookies Serverside
we have 4 Options to implement the authorization
Client Side(We can't use coz of Cookie next/header in server page only)
Serverside (I use this method)
withAuth (ServersideProps not able in App Router)
Middleare(we cannot use coz of cookie verification with redis)
I want to verify the request of auth from every page how i can do that and how i cn manage the state in Navbar on Sign and Sign Up
5th method we can create the backend api response Of Authorization.
jiss sa dubra masla na ho.
Beta Was this translation helpful? Give feedback.
All reactions