problem: The id Token i get back using getIdTokenClaims() doesn’t include an auth_time field that shows the last authentication. I have also tries including prompt=“login”
Hey @aly.sabry , I just checked this with the latest spa-js SDK and getIdTokenClaims() returned auth_time, so I’m guessing there’s something going wrong in your setup.
Some things to check:
Open the Network tab in browser’s dev tools before starting the authentication. Now try to login and you will see an /authorize request in the list. Click on that and verify that max_age=0 is being passed as a query parameter there.
Get the raw ID token and paste it in https://jwt.io. Check if the parameter is present in the body.