Skip to content

Conversation

joecampo
Copy link
Contributor

WorkOS supports Organizations which are essentially teams (a user can belong to many organizations). This PR adds the organizationId passed from WorkOS back to the User object.

This allows us to hook into the exposed createUsing callback on the authenticate method to receive that organizationId and store it/attach the user model to a team.

In my use case I'm planning on building out teams that leverage organizations, so having this will allow me to associate the user with a team when they're invited to app.

@huge10
Copy link

huge10 commented Feb 26, 2025

Would be nice to extend features / utilities beyond what they are used for in starter kits. +1 to add the org id as organizations is one of the core features of WorkOS.

@inmanturbo inmanturbo mentioned this pull request Feb 27, 2025
@taylorotwell taylorotwell merged commit 44bcd57 into laravel:main Feb 27, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants