I have a custom policy in Azure AD B2C and am trying to implement a session timeout. If a user first logs in, then the timeout expires, then they attempt to log in again, they should be prompted for their user name and password again.
First I followed the instructions here to set token_lifetime_secs and id_token_lifetime_secs to 20 minutes (1200 seconds) in the TechnicalProfile for JwtIssuer in my TrustFrameworkBase.xml: https://learn.microsoft.com/en-us/azure/active-directory-b2c/configure-tokens-custom-policy
Then I uploaded my updated TrustFrameworkBase.xml.
Then I logged in from my app using my custom policy and waited 20 minutes. I tried to log in again, and was immediately authenticated and directed back to my app. I was not prompted for my user name and password again as I was expecting.
There are two previous questions on stackexchange that seem to be the same as this, but they share the same solution which no longer works (it was retired in May 2020), so I am looking for a new solution: