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.
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.