Skip to content

chore(fastify): Add machine auth integration test#8230

Merged
wobsoriano merged 1 commit intomainfrom
rob/machine-auth-e2e-fastify
Apr 2, 2026
Merged

chore(fastify): Add machine auth integration test#8230
wobsoriano merged 1 commit intomainfrom
rob/machine-auth-e2e-fastify

Conversation

@wobsoriano
Copy link
Copy Markdown
Member

@wobsoriano wobsoriano commented Apr 2, 2026

Description

Adding complete machine auth (API keys, M2M, OAuth) integration tests to our SDKs:

  • Next.js (ref)
  • Astro (ref)
  • Nuxt (ref)
  • TanStack Start (ref)
  • React Router (ref)
  • Express (ref)
  • Hono (ref)
  • Fastify (this PR)

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Building Building Preview Apr 2, 2026 6:15pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

⚠️ No Changeset found

Latest commit: cc83715

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@8230

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@8230

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@8230

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@8230

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@8230

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@8230

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@8230

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@8230

@clerk/express

npm i https://pkg.pr.new/@clerk/express@8230

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@8230

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@8230

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@8230

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@8230

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@8230

@clerk/react

npm i https://pkg.pr.new/@clerk/react@8230

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@8230

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@8230

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@8230

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@8230

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@8230

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@8230

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@8230

commit: cc83715

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 2, 2026

📝 Walkthrough

Walkthrough

The pull request adds two changes to the Fastify integration: first, it exposes the instantiated Clerk client on the global window object in the Fastify-Vite template's main client file. Second, it introduces a new integration test file that defines machine authentication test scenarios for Fastify, including API key authentication, machine-to-machine authentication, and OAuth authentication routes. The test uses a Playwright suite with an Express proxy that forwards requests to the Fastify server.

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding machine authentication integration tests for Fastify. It is concise, clear, and directly reflects the primary purpose of the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@wobsoriano wobsoriano enabled auto-merge (squash) April 2, 2026 18:34
@wobsoriano wobsoriano merged commit f1f55ef into main Apr 2, 2026
63 of 76 checks passed
@wobsoriano wobsoriano deleted the rob/machine-auth-e2e-fastify branch April 2, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants