Skip to content

Conversation

@alexcarpenter
Copy link
Member

@alexcarpenter alexcarpenter commented Mar 5, 2025

Description

Removes legal consent checkbox from sign-up start card when only social or web3 strategies are enabled.

Fixes SDKI-904

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

vercel bot commented Mar 5, 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 Mar 6, 2025 1:33pm

@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2025

🦋 Changeset detected

Latest commit: 1283f92

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

@anagstef
Copy link
Member

anagstef commented Mar 6, 2025

Does this PR only include the changeset or I'm missing something? 🤔

@panteliselef
Copy link
Member

@alexcarpenter I think we are missing the actual implementation.

Comment on lines -323 to -330
{!shouldShowForm && isLegalConsentEnabled && (
<Form.ControlRow elementId='legalAccepted'>
<LegalCheckbox
{...formState.legalAccepted.props}
isRequired={fields.legalAccepted?.required}
/>
</Form.ControlRow>
)}
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't thins removes it completely ? If we have another checkbox can you point me to it ?

Copy link
Member Author

@alexcarpenter alexcarpenter Mar 6, 2025

Choose a reason for hiding this comment

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

No, it gets passed through in fields. Not sure what the intention was, but this seemed to solve the issue.

Screenshot 2025-03-06 at 8 53 04 AM

And only when google is enabled:

Screenshot 2025-03-06 at 8 53 37 AM

Copy link
Member

Choose a reason for hiding this comment

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

@octoper do you recall if this is needed or removing it breaks something that it is not obvious ?

Copy link
Member

@octoper octoper Mar 6, 2025

Choose a reason for hiding this comment

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

What I remember is that this was on the official iteration and if you checked the ToS and then clicked the Continue with X button you will sign up without asking legal consent again

@alexcarpenter alexcarpenter merged commit 1739658 into main Mar 7, 2025
30 checks passed
@alexcarpenter alexcarpenter deleted the alexcarpenter/sdki-904-sign-up-should-hide-tos-when-only-ssosamlweb3-are-available branch March 7, 2025 15:20
@tuliren
Copy link

tuliren commented Jul 15, 2025

@alexcarpenter, with this change, user can bypass agreeing to the terms when they sign up with social accounts. Is this intended? Isn't this a legal loophole?

Oh, actually never mind. I realized that after signing-up with social accounts, there is a separate screen asking for user consent. So this PR makes sense. Thanks~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants