Hi
I did a log in to user and now I want to know if it possible to have a system which log out people who used my app after 20 mins.
Can someone help me ?
Thank you

Hi
I did a log in to user and now I want to know if it possible to have a system which log out people who used my app after 20 mins.
Can someone help me ?
Thank you
Store the Now() info when the user opens the app for the first time (in the App.OnStart() for example). In other place of your app, compare that variable with the current time with DateDiff:
Set(Diff, DateDiff(Now(), YourOnStartVariable, TimeUnit.Minutes));
Then, if your DIff is equal or greater than 20 use the Exit function.
If(Diff >= 20, Exit(true))
The parameter true in the Exit function logs out the current user.
Ref: Exit function - Power Platform | Microsoft Learn
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.