Hi,
This is more of a question and not an issue.
I am trying to build one logic to redirect to 401.js page in next js from our api if user is not authenticated. I know we can do res.status 302 and then location param will redirect. However, the status code 30* will not do justice to 401 page.
Is there a way to render a page back to client like in express we have render method ?
Hi, This is more of a question and not an issue. I am trying to build one logic to redirect to 401.js page in next js from our api if user is not authenticated. I know we can do res.status 302 and then location param will redirect. However, the status code 30* will not do justice to 401 page. Is there a way to render a page back to client like in express we have render method ?
Thanks in advance. Regards Gaurav