Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(edge): Add Auth-Result observability header to Vercel Edge middl… #196

Merged
merged 1 commit into from Apr 15, 2022

Conversation

igneel64
Copy link
Contributor

@igneel64 igneel64 commented Apr 14, 2022

Type of change

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

Packages affected

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/clerk-expo
  • @clerk/backend-core
  • @clerk/clerk-sdk-node
  • @clerk/edge
  • build/tooling/chore

Description

  • npm test runs as expected.
  • npm run build runs as expected.
  • Add Auth-Result observability header on Vercel-Edge middleware.

The possible values of a handler is Response | NextResponse | null | undefined so in any case we are covered by using the .? access on the response object to set the headers.

https://www.notion.so/clerkdev/Add-Auth-Result-header-on-Next-js-edge-_middleware-38752519809d417c9a25ca40b6d6d4e8

Copy link
Member

@nikosdouvlis nikosdouvlis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Member

@colinclerk colinclerk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@igneel64 igneel64 merged commit 356e0be into main Apr 15, 2022
@igneel64 igneel64 deleted the auth-result-edge-middleware branch April 15, 2022 06:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants