Protect Next.js route handlers with machine-to-machine application?
Hi,
I want to expose the route handlers defined in Next.js 14 application for external applications to call using OAuth 2 client credentials flow. Can I do this with machine-to-machine application?
I tried to get the access token like this,
but it failed with this error,
Do you know what could be the problem?
I want to expose the route handlers defined in Next.js 14 application for external applications to call using OAuth 2 client credentials flow. Can I do this with machine-to-machine application?
I tried to get the access token like this,
but it failed with this error,
Do you know what could be the problem?