If you are looking to do this, use a Conditional Access for a specific app:
Note: Make sure you always test this with a test group/user to ensure you don't do anything that locks you out.
Configure authentication session management with Conditional Access
Note: "The sign-in frequency setting works with third-party SAML applications and apps that have implemented OAuth2 or OIDC protocols, as long as they don't drop their own cookies and are redirected back to Azure AD for authentication on regular basis."
Policy deployment
Policy 1: Sign-in frequency control
- Sign in to the Microsoft Entra admin center as at least a Conditional Access Administrator.
- Browse to Protection > Conditional Access.
- Select Create new policy.
- Give your policy a name. We recommend that organizations create a meaningful standard for the names of their policies.
- Choose all required conditions for customer’s environment, including the target cloud apps.
Note: It is recommended to set equal authentication prompt frequency for key Microsoft Office apps such as Exchange Online and SharePoint Online for best user experience.
- Under Access controls > Session.
- Select Sign-in frequency.
1. Choose **Periodic reauthentication** and enter a value of hours or days or select **Every time**.
- Select Sign-in frequency.
- Save your policy.
If this is helpful please accept answer.