Best Costume Authorization in MERN App #145362
Unanswered
Noman-Ansarii
asked this question in
Feed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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