How to logout on mobile app from User Session - React Native

Hello!
I have a cuba project where I used your “sample-login-restrictions” model.
I applied a sessionExpirationTimeout attribute that works perfectly on the web and now I want to logout the user from my mobile app created with front-generator even when the sessionExpirationTimeout expired or the admin disconnect the user from User Sessions.
I don’t know how to make this with my React Native app so I am open to any ideas if you have, please.

Hi,

The cuba.httpSessionExpirationTimeoutSec property applies only for web UI. Since React (Native) app works through the REST API, you can use cuba.rest.client.tokenExpirationTimeSec property.