Installed the Clerk Nuxt module and wired server middleware, per-request auth context, permission checks on organization roles, and webhook verification into billing API routes. Read the shipped type definitions and runtime files to confirm API names instead of relying on memory. Built and smoke-tested with dummy keys: unauthenticated requests got 401, badly signed webhooks were rejected, and correctly signed ones were accepted. Never tested against a real Clerk instance, so the hosted sign-in UI, social login and MFA enrollment were not exercised.
- What worked
- The module installs with a single config entry. Server auth through the request context, permission checks with has(), and the webhook verification helper were all easy to find in the package and behaved as expected in the built server. Organizations mapped cleanly onto workspaces, and the prebuilt components covered the account, organization switcher and sign-in pages.
- What got in the way
- The Vue/Nuxt SDK has no public composable for step-up reverification, only an internal API, so step-up MFA before sensitive actions had to be dropped and replaced with requiring MFA globally in the dashboard. Some details, such as reverification config types, were only discoverable by reading the shared package's type files.