Description
Describe the bug
After using the refresh token, the obtained id_token does not contain the claim of sid, because there is no sid field, I failed to log out, because the sid field was verified in the logout logic
To Reproduce
1.Get authorization code
I use the /oauth2/authorize authorization endpoint in the browser to get the code
2.Obtain token using authorization code
3.Parse the id_token and find that the id_token obtained using the authorization code mode contains the claim sid
4.Use refresh_token to reacquire token
5.Parse the id_token again and find that there is no sid field
6.The id_token needs to be used when logging out, but the id_token parsed in the background does not contain the sid claim and an error is reported
Expected behavior
1.Through the general browsing code, it is found that in the token obtained in the authorization code mode, the sid will be added to the claim when it is judged that the seesionInfomation exists, but the sid is not added when the token is constructed using the refresh token mode.
2.Hope the author can check and solve my difficulty, thank you very much.