Skip to content

Authentication handling breaks in serverless environments #1

Description

@francescobianco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions