Skip to content

[BUG] #290

Open
Open

Description

@amjed-ali-tect

Summary

I am using com.sumup:merchant-sdk:7.1.0 in my Android application. SumUp login works correctly initially, but the SDK does not seem to maintain the login session.

After the application remains idle (standby) for more than 24 hours, SumUpAPI.isLoggedIn() returns false, and the user is required to log in to SumUp again.

The same issue occurs when the application is completely closed and restarted. Even though the user has previously logged in successfully, the SDK requires another login.

Is this expected behavior in SDK version 7.1.0, or is there a way to persist the SumUp login session across app restarts and extended periods of inactivity?

Steps to Reproduce

  1. Integrate SumUp SDK version 7.1.0 into an Android application.
  2. Initialize and perform SumUp login using the following code:
val sumUpLogin: SumUpLogin = SumUpLogin.builder(strSumUpID).build()

SumUpAPI.openLoginActivity(
    this@DeviceManagementActivity,
    sumUpLogin,
    requestSumUpLinkCode
)
  1. Complete the login process successfully.
  2. Verify the login status using:
SumUpAPI.isLoggedIn()
  1. Keep the application in standby for more than 24 hours
  2. Check the login status again.
  3. Alternatively, completely close the application and restart it.
  4. Check the login status after restarting the application.

Expected Behavior

  • SumUp login session should remain active after successful authentication.
  • The user should not be required to log in again after restarting the application.
  • The login session should ideally persist across extended periods of inactivity, unless the session expires or is explicitly invalidated by SumUp.

Actual Behavior

  • Initially, login works successfully.
  • After the application remains in standby for more than 24 hours, SumUpAPI.isLoggedIn() indicates that the user is no longer logged in.
  • After completely closing and restarting the application, SumUpAPI.isLoggedIn() also indicates that the user is not logged in.
  • The user must authenticate with SumUp again.

Android Version(s)

Not yet specified.

Impacted Devices

Not yet specified.

Impacted Readers

Not yet specified.

Firmware Version(s)

Not yet specified.

Crash Log

Not applicable. This is a login session persistence issue, not a crash.

Dependency Versions

  • SumUp SDK: 7.1.0
  • Kotlin: Not yet specified
  • Android Gradle Plugin: Not yet specified
  • Gradle: Not yet specified

Video / Screenshot

Not available.

Other Information

Login status is checked using:

SumUpAPI.isLoggedIn()

Login is initiated using SumUpAPI.openLoginActivity() with a SumUpLogin instance built using the SumUp affiliate ID.

Questions:

  1. Does SumUp SDK 7.1.0 persist authentication sessions automatically?
  2. Is there any configuration required to maintain the login session across application restarts?
  3. Is there a known session expiration policy (for example, 24 hours of inactivity)?
  4. Is there a recommended way to restore or refresh the login session without requiring the user to authenticate again?

Activity

  1. mkutlev commented on Nov 23, 2026

    @mkutlev

    Hi @amjed-ali-tect ,

    Thanks for the report.

    You're using the SDK's native login. We keep it for existing integrations and for testing. It doesn't refresh the access token when it expires, so you have to log in again.

    For production, we recommend OAuth / transparent login.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions