It is my understanding that a User must be logged into their Microsoft O365 Account to use an app. Are your users somehow able to use apps without an O365 login? Can you please explain why this check is necessary?
You don't need to program this feature into your app. If a user becomes logged out then Microsoft will ask the user to reauthenticate automatically.
There is currently no functionality in the Office365 Connector that would allow you to check user login status.
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."
FIll out a quick form to claim your community user group member badge today!
The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!