-
Notifications
You must be signed in to change notification settings - Fork 461
fix(chrome-extension): Enable support for Metamask & OKX; Mark unsupported components
#6179
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@clerk/chrome-extension': minor | ||
| --- | ||
|
|
||
| Explicitly mark `GoogleOneTap`, `PricingTable`, and `SignInWithMetamaskButton` UI components as deprecated and unsupported (due to the requirement of Remotely Hosted Code) to help avoid confusion. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| /** | ||
| * @deprecated This component is not supported in Browser Extensions due to Chrome's security restrictions around remotely hosted code. | ||
| * @see https://clerk.com/docs/references/browser-extensions/browser-security-restrictions | ||
| */ | ||
| export const PricingTable = () => null; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's not include this, as it will be handled in
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would be great, and I've removed this from the PR. We just need to make sure we hit this as PR is a direct result of people getting caught up by the RHC requirement. |
||
|
|
||
| /** | ||
| * @deprecated This component is not supported in Browser Extensions due to Chrome's security restrictions around remotely hosted code. | ||
| * @see https://clerk.com/docs/references/browser-extensions/browser-security-restrictions | ||
| */ | ||
| export const SignInWithMetamaskButton = () => null; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe we can get around this if needed ! It is caused by a single utility functions that loads the coinbase wallet sdk, which is unrelated to metamask.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Originally, we were targeting pop-ups. Of which, none of the Web3 options worked. Now that we support other variants like side panels, this isn't the case anymore. I've updated to PR to reflect that. |
||
|
|
||
| /** | ||
| * @deprecated This component is not supported in Browser Extensions due to Chrome's security restrictions around remotely hosted code. | ||
| * @see https://clerk.com/docs/references/browser-extensions/browser-security-restrictions | ||
| */ | ||
| export const GoogleOneTap = () => null; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export { ClerkProvider } from './ClerkProvider'; | ||
| export { GoogleOneTap, PricingTable, SignInWithMetamaskButton } from './NotSupported'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmilewski Is it better to simply control what's exported here instead of breaking without realising it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, though the plan was to deprecate, then remove in a major.