Skip to content

feat(clerk-js): Add OAuthConsent component #6021

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

Merged
merged 47 commits into from
Jun 3, 2025

Conversation

alexcarpenter
Copy link
Member

@alexcarpenter alexcarpenter commented May 28, 2025

Description

  • Introduced the OAuthConsent component with mounting and unmounting methods in Clerk.
  • Updated the sandbox app to include OAuthConsent in the available components and routing.
  • Enhanced types to support OAuthConsent properties and appearance.
  • Added corresponding links in the sandbox template for navigation.
Screenshot 2025-06-03 at 9 55 42 AM
Screen.Recording.2025-05-30.at.9.21.28.AM.mov

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:

- Introduced the OAuthConsent component with mounting and unmounting methods in Clerk.
- Updated the sandbox app to include OAuthConsent in the available components and routing.
- Enhanced types to support OAuthConsent properties and appearance.
- Added corresponding links in the sandbox template for navigation.
Copy link

changeset-bot bot commented May 28, 2025

🦋 Changeset detected

Latest commit: 9b84e46

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 22 packages
Name Type
@clerk/clerk-js Patch
@clerk/clerk-react Patch
@clerk/types Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/elements Patch
@clerk/nextjs Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-react-start Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/localizations Patch
@clerk/nuxt Patch
@clerk/shared Patch
@clerk/testing Patch
@clerk/themes Patch
@clerk/vue Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link

vercel bot commented May 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 8:39pm

@wobsoriano
Copy link
Member

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @wobsoriano - the snapshot version command generated the following package versions:

Package Version
@clerk/agent-toolkit 0.0.40-snapshot.v20250529171639
@clerk/astro 2.8.2-snapshot.v20250529171639
@clerk/backend 1.33.2-snapshot.v20250529171639
@clerk/chrome-extension 2.4.10-snapshot.v20250529171639
@clerk/clerk-js 5.67.5-snapshot.v20250529171639
@clerk/elements 0.23.31-snapshot.v20250529171639
@clerk/clerk-expo 2.11.10-snapshot.v20250529171639
@clerk/expo-passkeys 0.3.8-snapshot.v20250529171639
@clerk/express 1.5.2-snapshot.v20250529171639
@clerk/fastify 2.2.23-snapshot.v20250529171639
@clerk/localizations 3.16.3-snapshot.v20250529171639
@clerk/nextjs 6.20.2-snapshot.v20250529171639
@clerk/nuxt 1.6.9-snapshot.v20250529171639
@clerk/clerk-react 5.31.8-snapshot.v20250529171639
@clerk/react-router 1.4.8-snapshot.v20250529171639
@clerk/remix 4.7.8-snapshot.v20250529171639
@clerk/shared 3.9.5-snapshot.v20250529171639
@clerk/tanstack-react-start 0.15.8-snapshot.v20250529171639
@clerk/testing 1.7.5-snapshot.v20250529171639
@clerk/themes 2.2.48-snapshot.v20250529171639
@clerk/types 4.59.3-snapshot.v20250529171639
@clerk/vue 1.8.6-snapshot.v20250529171639

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/agent-toolkit

npm i @clerk/[email protected] --save-exact

@clerk/astro

npm i @clerk/[email protected] --save-exact

@clerk/backend

npm i @clerk/[email protected] --save-exact

@clerk/chrome-extension

npm i @clerk/[email protected] --save-exact

@clerk/clerk-js

npm i @clerk/[email protected] --save-exact

@clerk/elements

npm i @clerk/[email protected] --save-exact

@clerk/clerk-expo

npm i @clerk/[email protected] --save-exact

@clerk/expo-passkeys

npm i @clerk/[email protected] --save-exact

@clerk/express

npm i @clerk/[email protected] --save-exact

@clerk/fastify

npm i @clerk/[email protected] --save-exact

@clerk/localizations

npm i @clerk/[email protected] --save-exact

@clerk/nextjs

npm i @clerk/[email protected] --save-exact

@clerk/nuxt

npm i @clerk/[email protected] --save-exact

@clerk/clerk-react

npm i @clerk/[email protected] --save-exact

@clerk/react-router

npm i @clerk/[email protected] --save-exact

@clerk/remix

npm i @clerk/[email protected] --save-exact

@clerk/shared

npm i @clerk/[email protected] --save-exact

@clerk/tanstack-react-start

npm i @clerk/[email protected] --save-exact

@clerk/testing

npm i @clerk/[email protected] --save-exact

@clerk/themes

npm i @clerk/[email protected] --save-exact

@clerk/types

npm i @clerk/[email protected] --save-exact

@clerk/vue

npm i @clerk/[email protected] --save-exact

@wobsoriano
Copy link
Member

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @wobsoriano - the snapshot version command generated the following package versions:

Package Version
@clerk/agent-toolkit 0.1.0-snapshot.v20250603170454
@clerk/astro 2.9.0-snapshot.v20250603170454
@clerk/backend 2.0.0-snapshot.v20250603170454
@clerk/chrome-extension 2.4.11-snapshot.v20250603170454
@clerk/clerk-js 5.68.0-snapshot.v20250603170454
@clerk/elements 0.23.32-snapshot.v20250603170454
@clerk/clerk-expo 2.13.0-snapshot.v20250603170454
@clerk/expo-passkeys 0.3.9-snapshot.v20250603170454
@clerk/express 1.6.0-snapshot.v20250603170454
@clerk/fastify 2.3.0-snapshot.v20250603170454
@clerk/localizations 3.16.4-snapshot.v20250603170454
@clerk/nextjs 6.21.0-snapshot.v20250603170454
@clerk/nuxt 1.7.0-snapshot.v20250603170454
@clerk/clerk-react 5.31.9-snapshot.v20250603170454
@clerk/react-router 1.5.0-snapshot.v20250603170454
@clerk/remix 4.8.0-snapshot.v20250603170454
@clerk/shared 3.9.6-snapshot.v20250603170454
@clerk/tanstack-react-start 0.16.0-snapshot.v20250603170454
@clerk/testing 1.8.0-snapshot.v20250603170454
@clerk/themes 2.2.49-snapshot.v20250603170454
@clerk/types 4.60.0-snapshot.v20250603170454
@clerk/vue 1.8.7-snapshot.v20250603170454

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/agent-toolkit

npm i @clerk/[email protected] --save-exact

@clerk/astro

npm i @clerk/[email protected] --save-exact

@clerk/backend

npm i @clerk/[email protected] --save-exact

@clerk/chrome-extension

npm i @clerk/[email protected] --save-exact

@clerk/clerk-js

npm i @clerk/[email protected] --save-exact

@clerk/elements

npm i @clerk/[email protected] --save-exact

@clerk/clerk-expo

npm i @clerk/[email protected] --save-exact

@clerk/expo-passkeys

npm i @clerk/[email protected] --save-exact

@clerk/express

npm i @clerk/[email protected] --save-exact

@clerk/fastify

npm i @clerk/[email protected] --save-exact

@clerk/localizations

npm i @clerk/[email protected] --save-exact

@clerk/nextjs

npm i @clerk/[email protected] --save-exact

@clerk/nuxt

npm i @clerk/[email protected] --save-exact

@clerk/clerk-react

npm i @clerk/[email protected] --save-exact

@clerk/react-router

npm i @clerk/[email protected] --save-exact

@clerk/remix

npm i @clerk/[email protected] --save-exact

@clerk/shared

npm i @clerk/[email protected] --save-exact

@clerk/tanstack-react-start

npm i @clerk/[email protected] --save-exact

@clerk/testing

npm i @clerk/[email protected] --save-exact

@clerk/themes

npm i @clerk/[email protected] --save-exact

@clerk/types

npm i @clerk/[email protected] --save-exact

@clerk/vue

npm i @clerk/[email protected] --save-exact

@@ -0,0 +1,7 @@
---
'@clerk/clerk-js': patch
Copy link
Member

Choose a reason for hiding this comment

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

I think patch is good since this is internal only

/**
* Theme overrides that only apply to the `<OAuthConsent />` component
*/
oauthConsent?: T;
Copy link
Member

Choose a reason for hiding this comment

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

Since this will always be internal should we maybe prefix it __internal_oauthConsent ?

Copy link
Member

Choose a reason for hiding this comment

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

good catch, updating...

Copy link
Member

Choose a reason for hiding this comment

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

Updated 🫡

@wobsoriano wobsoriano enabled auto-merge (squash) June 3, 2025 20:42
@wobsoriano wobsoriano merged commit b578225 into main Jun 3, 2025
36 checks passed
@wobsoriano wobsoriano deleted the alexcarpenter/oauth-consent-component branch June 3, 2025 20:47
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.

6 participants