Issue with Single Login, the first one does not log out

Hi

I am creating dotnet maui app. When ever I try to login I get this message
User cannot login because Multiple Logins disabled and there is a logged in user for the account.

Though I have set the first user to logout.

Thanks and Regards
Ali Sakhi

Try to logout before login.
Looks like you’ve already logged in before logging in again.

The use case is if user closes the app, and then try to login again.

The first app/session should log out, this is the default feature.

No, you need to logout before login.
On the server, this user is still logged in, although CurrentUser == null in the SDK.

Is there any API to log out user using dotnet sdk. How can a user logs out from the app if the current user is null.

Just call Backendless.UserService.Logout();