-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: siwx cloud auth config flag #3424
base: main
Are you sure you want to change the base?
Conversation
…siwe-to-siwx-migration
…siwe-to-siwx-migration
…siwe-to-siwx-migration
…siwe-to-siwx-migration
…ct/web3modal into feat/siwx-cloud-auth
…hentication loading
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…iwx-cloud-auth-config
OptionsController.subscribeKey('features', async features => { | ||
if (features?.auth) { | ||
if (OptionsController.state.siwx) { | ||
console.warn("SIWX config already enabled, 'auth' feature will not be enabled") |
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.
console.warn("SIWX config already enabled, 'auth' feature will not be enabled") | |
console.warn("SIWX config already provided, the default Reown Auth feature will not be used.") |
@@ -21,7 +21,8 @@ const modal = createAppKit({ | |||
networks: ConstantsUtil.EvmNetworks, | |||
projectId: ConstantsUtil.ProjectId, | |||
features: { | |||
analytics: true | |||
analytics: true, | |||
auth: true |
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.
Why do we need this flag here if we already have the siwx param?
auth: true | |
auth: true |
params: ApiController._getSdkProperties() | ||
}) | ||
console.log({ isAnalyticsEnabled, isAppKitAuthEnabled }) | ||
OptionsController.setFeatures({ analytics: isAnalyticsEnabled, auth: isAppKitAuthEnabled }) |
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.
Could we set siwx's value to the CloudAuthSIWX instance if it's enabled ?
Description
Please include a brief summary of the change.
Type of change
Associated Issues
For Linear issues: Closes APKT-xxx
For GH issues: closes #...
Showcase (Optional)
If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.
Checklist