Skip to content

Update pinned @workos-inc/node dependency from 8.0.0 to support newer versions #19

@rphansen91

Description

@rphansen91

@workos/authkit-session@0.3.4 pins @workos-inc/node to exactly 8.0.0:

"dependencies": {
  "@workos-inc/node": "8.0.0",
}

@workos-inc/node is now at v8.8.0, which introduced the new authorization namespace (replacing the deprecated fga namespace as of v8.4.0). Projects that use both authkit-session and the newer SDK get two separate copies in node_modules, which causes a TypeScript error when passing the v8.8.0 WorkOS instance to AuthService:

Argument of type 'WorkOS' is not assignable to parameter of type 'WorkOS'.
  The types returned by 'createHttpClient(...)' are incompatible between these types.
    Type 'HttpClient' is not assignable to type 'HttpClient'.
      Types have separate declarations of a private property 'getSleepTimeInMilliseconds'.

The runtime API is compatible — the only issue is the type mismatch from having two different versions of the same package.

Could the dependency be updated to either a compatible range (e.g., ^8.0.0) or pinned to a newer version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions