@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?
@workos/authkit-session@0.3.4pins@workos-inc/nodeto exactly8.0.0:@workos-inc/nodeis now at v8.8.0, which introduced the newauthorizationnamespace (replacing the deprecatedfganamespace as of v8.4.0). Projects that use bothauthkit-sessionand the newer SDK get two separate copies innode_modules, which causes a TypeScript error when passing the v8.8.0WorkOSinstance toAuthService: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?