<OrganizationSwitcher />
Active-org picker. Lists the signed-in user's organizations and lets them switch or jump to a create flow.
Copy this quickstart guide as a prompt for LLMs to implement KolayLogin in your application.
Usage
import { SignedIn, OrganizationSwitcher } from '@kolaylogin/react';
<SignedIn>
<OrganizationSwitcher
createOrganizationUrl="/create-organization"
hidePersonal={false}
/>
</SignedIn>Props
createOrganizationUrl— link target for "+ Create organization". Default/create-organization.afterSelectOrganization(orgId)— fires before the redirect.redirectUrl— where to land after a switch. Default: reload the current page.hidePersonal— remove the "Personal account" entry (useful for B2B-only apps).
Switches call PATCH /v1/orgs/current. The next refresh rotates the __session JWT with the new org + org_role claims.