magiclabs / magic-js

Magic browser/React Native JavaScript SDK is your entry-point to integrating passwordless authentication inside your application.
https://magic.link/docs/api-reference/client-side-sdks/web
Apache License 2.0
463 stars 86 forks source link

chore: adds try catch to preload #776

Closed joshuascan closed 3 months ago

joshuascan commented 3 months ago

πŸ“¦ Pull Request

[Provide a general summary of the pull request here.]

βœ… Fixed Issues

🚨 Test instructions

[Describe any additional context required to test the PR/feature/bug fix.]

⚠️ Don't forget to add a semver label!

Please 🚨 ONLY ADD ONE 🚨 of the following labels, failing to do so may lead to adverse versioning of your changes when published:

Special Note

Please avoid adding any of the Priority labels as they conflict with the labels above ☝️

πŸ“¦ Published PR as canary version: Canary Versions
:sparkles: Test out this PR locally via: ```bash npm install @magic-ext/algorand@23.2.1-canary.776.10274248297.0 npm install @magic-ext/aptos@11.2.1-canary.776.10274248297.0 npm install @magic-ext/avalanche@23.2.1-canary.776.10274248297.0 npm install @magic-ext/bitcoin@23.2.1-canary.776.10274248297.0 npm install @magic-ext/conflux@21.2.1-canary.776.10274248297.0 npm install @magic-ext/cosmos@23.2.1-canary.776.10274248297.0 npm install @magic-ext/ed25519@19.2.1-canary.776.10274248297.0 npm install @magic-ext/farcaster@0.2.2-canary.776.10274248297.0 npm install @magic-ext/flow@23.2.1-canary.776.10274248297.0 npm install @magic-ext/gdkms@11.2.1-canary.776.10274248297.0 npm install @magic-ext/harmony@23.2.1-canary.776.10274248297.0 npm install @magic-ext/icon@23.2.1-canary.776.10274248297.0 npm install @magic-ext/near@23.2.1-canary.776.10274248297.0 npm install @magic-ext/oauth@22.2.1-canary.776.10274248297.0 npm install @magic-ext/oauth2@9.2.1-canary.776.10274248297.0 npm install @magic-ext/oidc@11.2.1-canary.776.10274248297.0 npm install @magic-ext/polkadot@23.2.1-canary.776.10274248297.0 npm install @magic-ext/react-native-bare-oauth@25.2.1-canary.776.10274248297.0 npm install @magic-ext/react-native-expo-oauth@25.2.1-canary.776.10274248297.0 npm install @magic-ext/solana@25.3.1-canary.776.10274248297.0 npm install @magic-ext/sui@0.3.1-canary.776.10274248297.0 npm install @magic-ext/taquito@20.2.1-canary.776.10274248297.0 npm install @magic-ext/terra@20.2.1-canary.776.10274248297.0 npm install @magic-ext/tezos@23.2.1-canary.776.10274248297.0 npm install @magic-ext/webauthn@22.2.1-canary.776.10274248297.0 npm install @magic-ext/zilliqa@23.2.1-canary.776.10274248297.0 npm install @magic-sdk/commons@24.2.1-canary.776.10274248297.0 npm install @magic-sdk/pnp@22.2.1-canary.776.10274248297.0 npm install @magic-sdk/provider@28.2.1-canary.776.10274248297.0 npm install @magic-sdk/react-native-bare@29.2.1-canary.776.10274248297.0 npm install @magic-sdk/react-native-expo@29.2.1-canary.776.10274248297.0 npm install @magic-sdk/types@24.0.6-canary.776.10274248297.0 npm install magic-sdk@28.2.1-canary.776.10274248297.0 # or yarn add @magic-ext/algorand@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/aptos@11.2.1-canary.776.10274248297.0 yarn add @magic-ext/avalanche@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/bitcoin@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/conflux@21.2.1-canary.776.10274248297.0 yarn add @magic-ext/cosmos@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/ed25519@19.2.1-canary.776.10274248297.0 yarn add @magic-ext/farcaster@0.2.2-canary.776.10274248297.0 yarn add @magic-ext/flow@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/gdkms@11.2.1-canary.776.10274248297.0 yarn add @magic-ext/harmony@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/icon@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/near@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/oauth@22.2.1-canary.776.10274248297.0 yarn add @magic-ext/oauth2@9.2.1-canary.776.10274248297.0 yarn add @magic-ext/oidc@11.2.1-canary.776.10274248297.0 yarn add @magic-ext/polkadot@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/react-native-bare-oauth@25.2.1-canary.776.10274248297.0 yarn add @magic-ext/react-native-expo-oauth@25.2.1-canary.776.10274248297.0 yarn add @magic-ext/solana@25.3.1-canary.776.10274248297.0 yarn add @magic-ext/sui@0.3.1-canary.776.10274248297.0 yarn add @magic-ext/taquito@20.2.1-canary.776.10274248297.0 yarn add @magic-ext/terra@20.2.1-canary.776.10274248297.0 yarn add @magic-ext/tezos@23.2.1-canary.776.10274248297.0 yarn add @magic-ext/webauthn@22.2.1-canary.776.10274248297.0 yarn add @magic-ext/zilliqa@23.2.1-canary.776.10274248297.0 yarn add @magic-sdk/commons@24.2.1-canary.776.10274248297.0 yarn add @magic-sdk/pnp@22.2.1-canary.776.10274248297.0 yarn add @magic-sdk/provider@28.2.1-canary.776.10274248297.0 yarn add @magic-sdk/react-native-bare@29.2.1-canary.776.10274248297.0 yarn add @magic-sdk/react-native-expo@29.2.1-canary.776.10274248297.0 yarn add @magic-sdk/types@24.0.6-canary.776.10274248297.0 yarn add magic-sdk@28.2.1-canary.776.10274248297.0 ```