Skip to content
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

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from
Draft

Conversation

zoruka
Copy link
Contributor

@zoruka zoruka commented Dec 10, 2024

Description

Please include a brief summary of the change.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

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

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

zoruka and others added 30 commits November 4, 2024 19:26
Copy link

changeset-bot bot commented Dec 10, 2024

⚠️ No Changeset found

Latest commit: bd70839

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
appkit-builder ❌ Failed (Inspect) Dec 10, 2024 3:30pm
appkit-laboratory ❌ Failed (Inspect) 💬 Add feedback Dec 10, 2024 3:30pm
appkit-vue-solana ❌ Failed (Inspect) Dec 10, 2024 3:30pm
appkit-wagmi-cdn-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 3:30pm
vue-wagmi-example ❌ Failed (Inspect) Dec 10, 2024 3:30pm

Base automatically changed from feat/siwx-cloud-auth to main December 10, 2024 14:51
OptionsController.subscribeKey('features', async features => {
if (features?.auth) {
if (OptionsController.state.siwx) {
console.warn("SIWX config already enabled, 'auth' feature will not be enabled")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Collaborator

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?

Suggested change
auth: true
auth: true

params: ApiController._getSdkProperties()
})
console.log({ isAnalyticsEnabled, isAppKitAuthEnabled })
OptionsController.setFeatures({ analytics: isAnalyticsEnabled, auth: isAppKitAuthEnabled })
Copy link
Collaborator

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants