Fact 110
In Clerk sandbox testing, Rishi quickly got middleware and a server-side session check working, and the normal session path was straightforward.
Source evidence (1)
000570Jun 7, 2023 / 08:43 UTC-07:00
Rishi posted the first auth v0.2 readout. Discord — #eng-team 2023-06-07 08:14 PT Rishi Patel Mercury auth v0.2 readout prep Spent time in the sandbox on the two hosted paths we keep circling for Mercury auth. Not trying to re-open custom auth; this is just the practical readout on where Clerk is clean, where Auth0 is cleaner, and what still feels unresolved before we talk live. - Sessions - Clerk: fastest path to a working session flow. I had middleware + server check working quickly, and the happy path feels boring in a good way. - Auth0: also works, but it took more setup to get to the same place. More knobs if we end up needing unusual policy or tenant-specific behavior. - Still unproven: session refresh after invite accept or org change. - Magic links - Clerk: easiest end-to-end flow so far. New user + return user behavior was straightforward in the sandbox. - Auth0 passwordless: workable, but redirect/state handling was fussier and I hit more did-we-just-lose-the-return-path moments. - Need one more pass on link reuse and expiry behavior so support is not guessing on day one. - Organization invites - Clerk's org model maps pretty well to the basic team-invite flow we want. - Main edge case: invited person already has a personal workspace, then accepts into a team workspace. That handoff is not fully burned down. - Auth0 can do it, but we would own more of the invite and membership stitching ourselves. - SSO / admin gaps - This is still the squishiest area. - If Mercury launch only needs normal session auth + invites, Clerk remains the simpler path. - If we need deeper admin controls, domain or IdP management, or more enterprise-ish SSO behavior earlier than planned, Auth0 still looks stronger there. - Pricing caveats - Clerk is better on speed right now. - I still do not have a satisfying pricing view if usage ramps fast and we end up with a large MAU footprint on top of org features. - Auth0 is less pleasant on implementation time, but the enterprise/contract shape may be less surprising later. - Staging / deploy note - If anyone wants to validate either path on staging, please use the standard pipeline. - No one-off shortcut for staging auth testing. I do not want to learn the wrong lesson from a path we would not actually ship. Happy to turn this into a short walkthrough once people have skimmed. Create an internal pre-read doc for Thursday with the questions and non-decisions. I want scope risks and deploy-discipline checks called out, not a final provider recommendation.
Message 000570 in history