Skip to content

oauth.logout() inconsistent behavior on iOS and Android with Salesforce SDK v13.1.0 #427

@amirsohel-yash

Description

@amirsohel-yash

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions