Skip to content

Fix incorrect deprecation warning for afterSignInUrl / afterSignUpUrl in ClerkProvider #6655

@tonton-k37

Description

@tonton-k37

Preliminary Checks

Reproduction

* @deprecated Use `fallbackRedirectUrl` or `forceRedirectUrl` instead.

Publishable key

pk_test_cmVmaW5lZC1tYW4tNzIuY2xlcmsuYWNjb3VudHMuZGV2JA

Description

Steps to reproduce:

  1. Set up ClerkProvider in a Next.js project using afterSignInUrl or afterSignUpUrl props
  2. Run the app and check the console warnings.
<ClerkProvider 
  publishableKey={process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
  afterSignInUrl="/dashboard"
  afterSignUpUrl="/dashboard"
>

Expected behavior:

  • The deprecation warning should suggest the correct replacement props:
  • signInFallbackRedirectUrl
  • signUpFallbackRedirectUrl

Actual behavior:

  • The current warning suggests: Use fallbackRedirectUrl or forceRedirectUrl instead.
  • These props do not exist, which makes it unclear what to replace with.
  • The correct replacement is signInFallbackRedirectUrl / signUpFallbackRedirectUrl.

If this is confirmed, I’m happy to open a PR to fix the deprecation warning message so it points to the correct props.

Environment

System:
- OS: windows 11
Binaries:
- Node: v22
Browsers:
- Chrome: 139.0.7258.139
npmPackages:
- clerk/nextjs: 6.29.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions