Skip to content

fix(clerk-js): Use redirect_url across all auth flows#229

Merged
SokratisVidros merged 1 commit intomainfrom
respect_redirect_url_in_email_verifications
May 11, 2022
Merged

fix(clerk-js): Use redirect_url across all auth flows#229
SokratisVidros merged 1 commit intomainfrom
respect_redirect_url_in_email_verifications

Conversation

@SokratisVidros
Copy link
Copy Markdown
Contributor

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.

Teach ClerkJS to respect redirect_url upon completion of OAuth and email verification flows.

@SokratisVidros SokratisVidros self-assigned this May 10, 2022
afterSignInUrl={signInContext.afterSignInUrl}
afterSignUpUrl={signInContext.afterSignUpUrl}
afterSignInUrl={signInContext.afterSignInUrl || signInContext.redirectUrl}
afterSignUpUrl={signInContext.afterSignUpUrl || signInContext.redirectUrl}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❓ Can we use use the redirectUrl prop directly? Eg:

        <SSOCallback
          afterSignUpUrl={signUpContext.afterSignUpUrl}
          afterSignInUrl={signUpContext.afterSignInUrl}
          redirectUrl={signUpContext.redirectUrl}
          secondFactorUrl={signUpContext.signInUrl + '#/factor-two'}
        />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Of course we can. Thanks for suggesting it.

Teach ClerkJS to respect redirect_url upon completion of OAuth and email verification flows.
@SokratisVidros SokratisVidros force-pushed the respect_redirect_url_in_email_verifications branch from 42809d5 to fad7d50 Compare May 11, 2022 05:28
@SokratisVidros SokratisVidros merged commit 5dfdc2d into main May 11, 2022
@SokratisVidros SokratisVidros deleted the respect_redirect_url_in_email_verifications branch May 11, 2022 06:06
@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.

2 participants