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

React native magic.user.isLoggedIn() is returning false when you reopen the app in IOS #462

Open
devmandeep7777 opened this issue Feb 23, 2023 · 6 comments

Comments

@devmandeep7777
Copy link

I'm using @magic-sdk/react-native-bare for authentication.

when user logs in
await magic.user.isLoggedIn() this returns true
when I reopen app in IOS it returns false
but for android it works fine even after reopening the app.

@ayv8er
Copy link

ayv8er commented Feb 24, 2023

Hello, could you provide more context into the actions that lead to this behavior?
Before you reopen app in IOS, are you force closing the app or toggling to another app?
Also, do you have this app live for us to test ourselves?

@devmandeep7777
Copy link
Author

Hello, I'm force closing the app and then when I open the app magic.user.isLoggedIn() is returning false, this is only happening for IOS.
Even I tired this example app from magic link and found the same issue for IOS.

App is not live yet, but if you can provide your email, I can add you in internal testing.

@lichmac
Copy link

lichmac commented Mar 13, 2023

Hi, Any update? I got the same issue

 try {
      const isLoggedIn = await Magic.user.isLoggedIn();
      const ethMetadata = await Magic.user.getMetadata();
      const { publicAddress } = ethMetadata || {};
      fn.debugLog('Magic Is Ether Logged In: ', publicAddress, isLoggedIn);
      return isLoggedIn && !!publicAddress;
    } catch (e) {
      fn.debugLog("Magic Link Logged In: ", e);
    }

[ 'Magic Link Logged In: ',
[Error: Magic RPC Error: [-32603] Internal error: User denied account access.] ]

"@magic-sdk/react-native-bare": "^14.2.0"
"react": "18.1.0",
"react-native": "0.70.2"

@devmandeep7777
Copy link
Author

Hi, Any update?

@makss68
Copy link

makss68 commented Aug 6, 2023

Hello,
I observe the same issue on my side.

@pax-k
Copy link

pax-k commented Dec 28, 2023

Same issue here

"@magic-sdk/react-native-expo": "22.3.2",
"expo": "^49.0.11",
"react-native": "0.72.6",

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

No branches or pull requests

5 participants