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

Reject the isLoggedIn Promise if the user has no internet #494

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Dizigen
Copy link
Contributor

@Dizigen Dizigen commented Apr 7, 2023

📦 Pull Request

Rarible integration issue:
Rarible requested that isLoggedIn to throw an error if the user is not connected to the internet
They cited this issue as a blocker for release and will not accept doing a navigator.onLine check their side.
The only known way of reproducing the issue is to turn the internet off on their browsers

✅ Fixed Issues

🚨 Test instructions

Integrate the SDK.
Implement isLoggedIn but do not call it on site load (bind it to an action).
Navigate to the site
Turn the internet off
Execute the isLoggedIn call

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

Please only add one label:

  • patch: Bug Fix?
  • minor: New Feature?
  • major: Breaking Change?
  • skip-release: It's unnecessary to publish this change.
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @magic-ext/algorand@11.1.1-canary.494.4669951406.0
npm install @magic-ext/avalanche@11.1.1-canary.494.4669951406.0
npm install @magic-ext/bitcoin@11.1.1-canary.494.4669951406.0
npm install @magic-ext/conflux@9.1.1-canary.494.4669951406.0
npm install @magic-ext/cosmos@11.1.1-canary.494.4669951406.0
npm install @magic-ext/ed25519@7.1.1-canary.494.4669951406.0
npm install @magic-ext/flow@11.1.1-canary.494.4669951406.0
npm install @magic-ext/harmony@11.1.1-canary.494.4669951406.0
npm install @magic-ext/icon@11.1.1-canary.494.4669951406.0
npm install @magic-ext/near@11.1.1-canary.494.4669951406.0
npm install @magic-ext/oauth@10.1.1-canary.494.4669951406.0
npm install @magic-ext/polkadot@11.1.1-canary.494.4669951406.0
npm install @magic-ext/react-native-bare-oauth@11.2.1-canary.494.4669951406.0
npm install @magic-ext/react-native-expo-oauth@11.2.1-canary.494.4669951406.0
npm install @magic-ext/solana@12.1.1-canary.494.4669951406.0
npm install @magic-ext/taquito@8.1.1-canary.494.4669951406.0
npm install @magic-ext/terra@8.1.1-canary.494.4669951406.0
npm install @magic-ext/tezos@11.1.1-canary.494.4669951406.0
npm install @magic-ext/webauthn@10.1.1-canary.494.4669951406.0
npm install @magic-ext/zilliqa@11.1.1-canary.494.4669951406.0
npm install @magic-sdk/commons@12.1.1-canary.494.4669951406.0
npm install @magic-sdk/pnp@10.1.1-canary.494.4669951406.0
npm install @magic-sdk/provider@16.1.1-canary.494.4669951406.0
npm install @magic-sdk/react-native-bare@17.2.1-canary.494.4669951406.0
npm install @magic-sdk/react-native-expo@17.2.1-canary.494.4669951406.0
npm install magic-sdk@16.1.1-canary.494.4669951406.0
# or 
yarn add @magic-ext/algorand@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/avalanche@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/bitcoin@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/conflux@9.1.1-canary.494.4669951406.0
yarn add @magic-ext/cosmos@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/ed25519@7.1.1-canary.494.4669951406.0
yarn add @magic-ext/flow@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/harmony@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/icon@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/near@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/oauth@10.1.1-canary.494.4669951406.0
yarn add @magic-ext/polkadot@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/react-native-bare-oauth@11.2.1-canary.494.4669951406.0
yarn add @magic-ext/react-native-expo-oauth@11.2.1-canary.494.4669951406.0
yarn add @magic-ext/solana@12.1.1-canary.494.4669951406.0
yarn add @magic-ext/taquito@8.1.1-canary.494.4669951406.0
yarn add @magic-ext/terra@8.1.1-canary.494.4669951406.0
yarn add @magic-ext/tezos@11.1.1-canary.494.4669951406.0
yarn add @magic-ext/webauthn@10.1.1-canary.494.4669951406.0
yarn add @magic-ext/zilliqa@11.1.1-canary.494.4669951406.0
yarn add @magic-sdk/commons@12.1.1-canary.494.4669951406.0
yarn add @magic-sdk/pnp@10.1.1-canary.494.4669951406.0
yarn add @magic-sdk/provider@16.1.1-canary.494.4669951406.0
yarn add @magic-sdk/react-native-bare@17.2.1-canary.494.4669951406.0
yarn add @magic-sdk/react-native-expo@17.2.1-canary.494.4669951406.0
yarn add magic-sdk@16.1.1-canary.494.4669951406.0

@Dizigen Dizigen added the patch Increment the patch version when merged label Apr 7, 2023
@Dizigen Dizigen self-assigned this Apr 7, 2023
@Dizigen Dizigen temporarily deployed to production April 7, 2023 16:40 — with GitHub Actions Inactive
@Dizigen Dizigen temporarily deployed to production April 8, 2023 13:17 — with GitHub Actions Inactive
@Dizigen Dizigen temporarily deployed to production April 11, 2023 15:25 — with GitHub Actions Inactive
@Dizigen Dizigen temporarily deployed to production April 11, 2023 16:49 — with GitHub Actions Inactive
@bcleary06 bcleary06 requested review from a team and removed request for a team April 27, 2023 18:56
@Dizigen Dizigen changed the title Reject the isLoggedIn Promise outright if the user has no internet Reject the isLoggedIn Promise if the user has no internet Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant