Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add entitlements to session #349

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

adam-h
Copy link

@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
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
1 participant