-
Notifications
You must be signed in to change notification settings - Fork 61
Description
We are experiencing inconsistent logout behavior across platforms when using the latest Salesforce Mobile SDK for React Native (TypeScript template, SDK v13.1.0).
iOS Behavior
In production (custom url), calling oauth.logout() clears session tokens internally but does not redirect back to the experience site login screen.
The app remains on the current (post-login) React Native view, effectively leaving the user in a logged-out state but without a visible login prompt.
❌ Result:
Despite logout success internally, the app does not reload or show the experience site login page again on iOS (production login host).
This breaks the logout flow for users in production orgs.
✅ Expected Behavior in iOS
Logout should redirect user to experience site production url Login screen
Android Behavior
When calling oauth.logout() (from react-native-force), the Android app automatically minimizes to the home screen and then relaunches, displaying the Salesforce login screen again.
This happens for production environment.
✅ Expected Behavior in Android
Logout should work seamlessly without interrupting the flow