question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OAuth is not persisted after app restart

See original GitHub issue

✅ Prerequisites

  • Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
  • Are you running the latest SDK version?
  • Are you reporting to the correct repository (magic-sdk)?

🐛 Description

m.user.isLoggedIn() returns false after successful social log in (Google in my case) and app restart.

🧩 Steps to Reproduce

  1. Log in using m.oauth.loginWithPopup({ provider: 'google', redirectURI: REDIRECT_URI })
  2. Restart the app
  3. Call m.user.isLoggedIn()

🤔 Expected behavior

m.user.isLoggedIn() returns true

😮 Actual behavior

m.user.isLoggedIn() returns false

🌎 Environment

Software Version(s)
magic-sdk 8.1.0
Browser
yarn 1.22.10
Operating System macOS 12.1, iPhone simulator with iOS 15.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:29 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
pkayfirecommented, Nov 10, 2022

Appreciate the update – looking forward to a resolution. Thanks

2reactions
Ethellacommented, Nov 10, 2022

Hey @pkayfire, I apologize for the misinformation. As promised, we aim to have this problem resolved by the end of this week. The PR is under review, and it’s been our top priority. I’ll notify you once it’s been released to prod. Thank you for your patience!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Oauth not sign-in not working even after app is verified
1 Answer 1. Sorted by: Reset to default. Highest score (default) ...
Read more >
OAuth 2.0 stops working after resetting my password
My authorization call uses grant_type=password, I pass in all the correct user information, security token, client id, and client secret.
Read more >
Embedded app cannot complete OAuth process, and custom ...
Issue summary App authentication broken after updating to the "new" way of authenticating embedded apps, according to the Shopify tutorial ...
Read more >
OAuth Troubleshooting Guide | Atlassian Support
Common OAuth errors with application links. Unrecognized OAuth consumer key; OAuth signature rejected; The system clocks are not synchronized ...
Read more >
Change Snowflake OAuth to Saved Credentials - Tableau Help
No Tableau Server restart is required for the configurations to take effect. Important: Existing OAuth credentials established before the custom OAuth ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found