Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"extends": "next/core-web-vitals"
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": { "ecmaVersion": "latest", "sourceType": "module", "ecmaFeatures": { "jsx": true } },
"env": { "browser": true, "node": true, "es2022": true },
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react/recommended", "plugin:react/jsx-runtime", "plugin:react-hooks/recommended", "plugin:jsx-a11y/recommended"],
"settings": { "react": { "version": "detect" } },
"rules": { "react/prop-types": "off", "no-undef": "off" }
}
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: 20
node-version: 22
cache: npm
- uses: workos/setup-socket-firewall@195977cfa38ab4d70363af5403a106dbc54a61eb
with:
token: ${{ secrets.PUBLIC_SOCKET_FIREWALL_TOKEN }}
allow-external-fork-fallback: true
- run: npm ci
- run: npm ci --ignore-scripts
- run: npm audit --audit-level=moderate
- run: npm run lint
- run: npm run typecheck
- run: npm run build
env:
NEXT_TELEMETRY_DISABLED: 1
WORKOS_CLIENT_ID: client_SYNTHETIC
WORKOS_API_KEY: sk_SYNTHETIC
WORKOS_COOKIE_PASSWORD: synthetic-cookie-password-for-build-only-0000
NEXT_PUBLIC_WORKOS_REDIRECT_URI: http://localhost:3000/callback
7 changes: 7 additions & 0 deletions INTERVIEW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"interviewVersion": "se-interview-v1",
"stage": "live",
"durationMinutes": 60,
"entryPoint": "README.md",
"prompt": "LIVE.md"
}
29 changes: 29 additions & 0 deletions LIVE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Live customer email

**From:** Priya Shah, Head of Platform, Meridian Analytics

**Subject:** Customer-managed teams

Hi,

Our support team currently adds and removes users for every customer. We need Acme's workspace admins to manage their own members inside Meridian.

Using the provided app, show how an Acme admin could **view members and invite a colleague** without contacting support. Ordinary members must not have administrative access, and nobody should be able to manage another customer's workspace.

Our engineers suggested calling WorkOS directly from the browser with our API key to avoid adding backend work. Please assess that approach and recommend how we should proceed.

For today, we really just want to see a small working slice. We don't need to prove removal, role editing, SSO setup, custom styling, deployment, or a complete settings application. We can discuss those later.

Please ask about anything you need to clarify. Show us what you verified and be direct about what remains unfinished.

Priya

---

## Working-session agreement

60 minutes total: approximately 10 minutes clarifying the email, 35 minutes building, 15 minutes verifying, with introductions and wrap-up around that. The interviewer can help you navigate unfamiliar tooling; asking a question is not a failure.

You may use WorkOS's User Management widget or direct supported API calls. Explain your choice. Adding a supported package during the session is allowed. An authorized action needs more than a hidden button.

At time, stop; we assess the work and reasoning you can demonstrate, not just completion.
90 changes: 20 additions & 70 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,81 +1,31 @@
# SE Take-Home: The Meridian Engagement
# Meridian - live interview starter

## The engagement
This is the standard WorkOS SE interview, version `se-interview-v1`. Read [LIVE.md](LIVE.md) ahead of time if you like, but **do not implement it before the session**.

You're the WorkOS Solutions Engineer on a live evaluation. Meridian Analytics, a multi-tenant B2B SaaS company, is choosing between WorkOS and two other auth vendors this quarter. After your kickoff call, their Head of Platform sent the requirements brief in [`SCENARIO.md`](./SCENARIO.md). Your job: configure WorkOS and extend this app into the proof-of-capability demo that wins the evaluation, then present it to them. This repo is a working Next.js app with AuthKit sign-in already wired up. Treat it as the starting point Meridian's team will judge.
## Before the call: at most 15 minutes

## Setup
1. Use Node.js 22 LTS and this package's lockfile. If setup or changing Node versions becomes a distraction, contact your interviewer rather than troubleshooting for hours.
2. Run `npm ci` in this folder.
3. Copy `.env.local.example` to `.env.local`. Populate it privately from the interviewer-supplied candidate credential item:

Create your own copy of this repository with the **Use this template** button (rather than forking).
- `client_id` → `WORKOS_CLIENT_ID`
- `api_key` → `WORKOS_API_KEY`
- `cookie_secret` → `WORKOS_COOKIE_PASSWORD`
- `callback_uri` → `NEXT_PUBLIC_WORKOS_REDIRECT_URI`

You will need a [WorkOS account](https://dashboard.workos.com/signup); the free tier covers everything the scenario asks for.
4. Run `npm run dev`, open `http://localhost:3000`, and try the supplied demo login.
5. If anything fails, stop and contact the interviewer. Setup failures are not scored; we can restore access or reschedule.

1. In the [WorkOS dashboard](https://dashboard.workos.com), head to the Redirects tab and create a [sign-in callback redirect](https://workos.com/docs/user-management/nextjs) for `http://localhost:3000/callback` and set the app homepage URL to `http://localhost:3000`.
Keep the app and credentials private. Never commit `.env.local`, put keys in browser code, or paste secrets into AI prompts. You do not need Platform credentials. Use only the demo accounts and designated invitation inbox supplied by the interviewer.

2. After creating the redirect URI, navigate to the API keys tab and copy the _Client ID_ and the _Secret Key_. Rename the `.env.local.example` file to `.env.local` and supply your Client ID and API key as environment variables.
## What happens

3. Additionally, create a cookie password as the private key used to encrypt the session cookie. Copy the output into the environment variable `WORKOS_COOKIE_PASSWORD`.
The live interview is **60 minutes total**:

It has to be at least 32 characters long. You can use https://1password.com/password-generator/ to generate strong passwords.
- Discovery/Synthesize prompt: 10 minutes.
- Collaborative live technical session: **50 minutes**. Documentation, search and AI are welcome. Bring your editor and tell recruiting if you need tool access or accommodations.
- After an explicit pass: a separate extension, **90 minutes maximum including submission**, within a flexible one-week window. You may use your live app for this exercise.

4. Verify your `.env.local` file has the following variables filled.
We assess customer understanding, organization-scoped authorization, technical ownership, verification and communication.

```bash
WORKOS_CLIENT_ID=<YOUR_CLIENT_ID>
WORKOS_API_KEY=<YOUR_API_SECRET_KEY>
WORKOS_COOKIE_PASSWORD=<YOUR_COOKIE_PASSWORD>

NEXT_PUBLIC_WORKOS_REDIRECT_URI=http://localhost:3000/callback
```

5. Run the following command and navigate to [http://localhost:3000](http://localhost:3000).

```bash
npm run dev
```

One scenario note: the customer's SSO requirement names their Okta. You are expected to create a free-trial Okta developer account and set up a live Okta SSO connection. [Create a free Okta Developer account using this link](https://www.okta.com/free-trial).

## Required tooling

Before you start building, install the WorkOS agent skills in your repo:

```bash
npx skills add workos/skills
```

This adds the [WorkOS skills](https://github.com/workos/skills) (including `workos-widgets`) to your repo so your AI tooling has current integration guides to work from. See the [widget skills announcement](https://workos.com/blog/widget-skills) for background.

On AI use: we expect you to use AI tools throughout. That's not a loophole; it's the job. What we evaluate is the judgment you exercised, not whether you typed every line. You'll document how you worked with AI in `SUBMISSION.md`.

## What to build

Satisfy the brief. `SCENARIO.md` is the spec: there is no screen count or component checklist hiding here. Read it the way you'd read a real customer email. Decide what they actually need, notice what's underspecified, and make the calls a good SE would make. Anything the customer asked for should work; anything you add beyond that should earn its place.

The customer's "down the road" wish-list item is optional bonus territory. If you take it on, [WorkOS Pipes](https://workos.com/docs/pipes) is the intended tool.

## Time and deadline

Plan for 4–6 focused hours. You have one week from receiving this assignment.

## Deliverables

1. **Deployed app**: a working URL (Vercel is the expected host).
2. **Your repo**: a link to your copy for code review. If you make it private, coordinate reviewer access through your recruiting contact.
3. **Test credentials**: one working login per scenario role inside the demo tenant organization, listed in `SUBMISSION.md`. Provide email/password credentials for a user that the reviewer may use in order to access the application as well as the WorkOS workspace.
4. **Demo video**: 5–10 minutes, presented as if Meridian's team is watching. Show the app doing what the brief asks, and include a tour of your WorkOS dashboard explaining how you configured it. If recording isn't workable for you, a written walkthrough with screenshots is an accepted (second-best) alternative.
5. **Completed `SUBMISSION.md`**: filled in and committed to your repo.

## How we evaluate

The scored rubric stays on our side, but it weighs:

- Requirement coverage, and how you interpreted the parts that needed interpreting
- Correct WorkOS dashboard configuration, verified through your video and test logins
- Product and UX quality: the demo should feel like software, not a checklist
- The quality of your AI collaboration, as evidenced in your decision log
- Communication: does the video actually sell this to a skeptical customer?

## License

MIT. This repository is a WorkOS interview exercise; it isn't seeking outside contributions, but you're welcome to do whatever you like with your own copy.
Only the initial live prompt is included here. Recruiting will send extension instructions and the submission template after the pass decision. Keep this working copy private and use the agreed private submission channel.
41 changes: 0 additions & 41 deletions SCENARIO.md

This file was deleted.

48 changes: 0 additions & 48 deletions SUBMISSION.md

This file was deleted.

Loading
Loading