- Clone the repo
- Add
.env.local
file withVITE_CLERK_PUBLISHABLE_KEY={{your_publishable_key}}
- Install dependencies:
npm install
- Run the app:
npm run dev
- In the clerk dashboard
- Enable organizations
- Create a new organization
- Send an invitation to join the organization
- On your local machine
- Pull the repo
- Add
.env.local
file withVITE_CLERK_PUBLISHABLE_KEY={{your_publishable_key}}
(see.env.example
) - Install the dependencies:
npm install
- Run the app:
npm run dev
- In the app
- Sign up by clicking the "Sign up" button and following the steps. Use the email address that you sent the invitation to.
- Click on the
join
button in the organization list to join the organization - Click on the organization in the organization list to make it the active organization
- Click on the organization swither in the top left of the page to open it
- Notice that the organization is listed twice in the switcher
- Refresh the page
- Notice that the organization is now listed only once in the switcher
An organization should only be listed once in the organization switcher. Once the organization is joined, it should not be listed as joinable in the switcher.