I want to secure my api routes in next js I tried the getServerSession method it works but only on client side I want to use both side please I need solution. I have a admin api and I want to make only for admin and for both side for client and server. Also on next-auth I tried the credentials provider but it’s not providing the access token.
Secure api routes in next js
New contributor
Krishna Rathore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.