openapi-nodejs-sdk icon indicating copy to clipboard operation
openapi-nodejs-sdk copied to clipboard

Authentication handling breaks in serverless environments

Open francescobianco opened this issue 1 year ago • 0 comments

When using the Openapi SDK inside AWS Lambda or Vercel Functions, the internal auth token is not refreshed correctly between invocations. This causes 401 Unauthorized after a few cold starts. Steps to reproduce:

Deploy an Express route with Openapi SDK

Wait for the function to cold start

Call any endpoint (e.g. /api/openapi/business/info) → Returns 401 Expected: Token should persist or be refreshed silently.

francescobianco avatar Nov 09 '25 14:11 francescobianco