Serverless function auth

Hello. I created and deployed a serverless function (by making an /api directory in Next.js, e.g., /api/hello). When I accessed it through the Chrome browser, it returned the expected information. However, when I tried making requests through Chrome’s incognito mode or Postman, it responded with a 401 unauthorized error.

It seems like the function authenticates correctly in the regular Chrome browser because of the presence of the vercel_jwt token. How can I enable this for Postman and other tools as well?

Currently, I’m building a desktop app with Electron and planning to use serverless functions for the API. What should I do?

Hi,

You can create a Bypass Automation token and use it has header in your third party client Protection Bypass for Automation

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.