workos-node
workos-node copied to clipboard
Official Node SDK for interacting with the WorkOS API
[CookieSession.refresh](https://workos.com/docs/reference/authkit/session-helpers/refresh) does not rotate the refresh token. The sealed session that is returned we are expected to set in the cookie still has the original refresh token. According to https://workos.com/docs/reference/authkit/authentication/refresh-token,...
Trying to use the ``` import { WorkOS } from '@workos-inc/node'; const workos = new WorkOS(process.env.WORKOS_API_KEY); const webhook = await workos.webhooks.constructEvent({ payload: payload, sigHeader: sigHeader, secret: process.env.WEBHOOK_SECRET, }); ``` Webhook...
Cloudflare Workers with "nodejs_compat" error: Dynamic require of "buffer/index.js" is not supported
"@workos-inc/node": "7.59.0" Getting an error after enabling "nodejs_compat" compatibility flag in `wrangler.jsonc`. Full stack trace: ``` error running node_modules/.vite/deps_app/@workos-inc_node.js?v=54cb8c7e Error: Dynamic require of "buffer/index.js" is not supported at node_modules/.vite/deps_app/chunk-UP2VWCW5.js:9:9 at...
Hi! We're required to clear all vulnerabilities on our repo. I noticed we got flagged for the `cookie` module and traced to ``` auth/workos → @workos-inc/[email protected] → [email protected] → [email protected]...
## Description ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a...
## Description This lets an application cache a data key and use it for multiple operations without having to call the Vault API each time. ## Documentation Does this require...
From my understanding, we currently need to verify JWT tokens passed from the client to the server manually using a 3rd party library. There is already a function to retrieve...
Good morning, I'm working on integrating WorkOS with my custom UI and I have some questions around errors. I have went through and seen that GenericServerException is exported and can...