Skip to content

feat: add organizationId to onSuccess callback args and saveSession args #250

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheGamerzs
Copy link

This pull request introduces support for organizationId in the handleAuth flow.
The changes makes organizationId available in success callback and session state.

Authentication flow updates:

  • src/authkit-callback-route.ts: Updated the handleAuth function to include organizationId in the destructured response from authenticateWithCode. It is now passed to both the onSuccess callback and the saveSession function.

Session interface update:

  • src/interfaces.ts: Added an optional organizationId field to the Session interface to support storing the organization identifier.

@TheGamerzs TheGamerzs requested a review from a team as a code owner May 14, 2025 15:55
@TheGamerzs TheGamerzs requested a review from stacurry May 14, 2025 15:55
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.

1 participant