workos / workos-node

Official Node SDK for interacting with the WorkOS API
https://workos.com/docs/sdk/node
MIT License
119 stars 29 forks source link

Rework session helpers #1105

Closed PaulAsjes closed 1 month ago

PaulAsjes commented 2 months ago

Description

Refactors the session helpers to add a new session class. The old helper methods will stay put, but we'll likely add a deprecation comment and remove them in a future major version.

See this gist as an example of how this would work in practise.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[x] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.