Skip to content

Expose WorkOS client for advanced use cases#204

Merged
nicknisi merged 2 commits intomainfrom
nicknisi/expose-workos
Feb 20, 2025
Merged

Expose WorkOS client for advanced use cases#204
nicknisi merged 2 commits intomainfrom
nicknisi/expose-workos

Conversation

@nicknisi
Copy link
Member

@nicknisi nicknisi commented Feb 19, 2025

This PR adds the ability to access the underlying WorkOS client directly for advanced use cases that are not covered by existing helper methods.

Changes:

  • Updated README.md:
    • Added a new “Advanced: Direct access to the WorkOS client” section.
    • Provided an example of how to retrieve and use the WorkOS client via getWorkOS().
  • Exported getWorkOS to allow direct access to the WorkOS client.

Why?

This change enables developers to use lower-level WorkOS SDK methods when necessary, without being restricted to the helper methods provided by the library.

Testing:

  • Verified that getWorkOS() successfully returns the WorkOS client instance.
  • Ensured existing functionality remains unaffected.

@nicknisi nicknisi force-pushed the nicknisi/expose-workos branch from 7c2c69e to 7ddff3b Compare February 20, 2025 04:33
@nicknisi nicknisi marked this pull request as ready for review February 20, 2025 04:33
@nicknisi nicknisi merged commit 0d76d0c into main Feb 20, 2025
4 checks passed
@nicknisi nicknisi deleted the nicknisi/expose-workos branch February 20, 2025 19:40
@nicknisi nicknisi mentioned this pull request Feb 21, 2025
@nicknisi nicknisi mentioned this pull request Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants