Skip to content

Conversation

@adam-h
Copy link
Contributor

@adam-h adam-h commented Jan 24, 2025

Description

If the users organisation has a stripe link the token includes any entitlements, this should be exposed to client code.

Fixes #336

First commit includes some minor refactoring to make adding a test for this easier, included separately to make reviewing easier.

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.

  • I couldn't find a docs repository 🤷‍♂️

Allowing more complete testing of the token with only the verification being mocked.

The separate payload enables creating more tests with differing payloads.
If the users organisation has a stripe link the token includes any entitlements, this should be exposed to client code.

Fixes workos#336
Copy link
Contributor

@dandorman dandorman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! A nice bit of test cleanup, too. Thanks!

@dandorman dandorman merged commit 7b9e66b into workos:main Jan 27, 2025
2 checks passed
@dandorman dandorman mentioned this pull request Jan 27, 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.

Support entitlements in the Session

2 participants