Authentication with the local password fails if the refresh token expired, with the error message stating failed to refresh token, the logs show:
Failed to refresh token: oauth2: "invalid_grant" "AADSTS700082: The refresh token has expired due to inactivity
The user won't be able to login unless they disable their network connection, or do the device authentication flow to obtain a new refresh token