Skip to content

OAuth is not persisted after app restartย #279

@SergeyYuhimovich

Description

@SergeyYuhimovich

โœ… 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions