NextJS api authentication with 3rd party API
Hello ! We currently have a NextJS app that uses its API routes to call an external API and retrieve data that way. So essentially such files might look like this.
Probably not the best code, but what I'm wondering is about the token we have for authentication, is there a way to persist that token or use (maybe) a middleware next provides so we don't pass it through cookies ?
0 Replies