1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-05 02:30:32 -05:00

PM-20532 - Add comment

This commit is contained in:
Jared Snider 2025-05-30 19:49:35 -04:00
parent 1b65b8a2c9
commit ccc5a2e213
No known key found for this signature in database
GPG Key ID: A149DDD612516286

View File

@ -40,7 +40,8 @@ public class ProfileService : IProfileService
{
var existingClaims = context.Subject.Claims;
// TODO: add comment for why we can exempt send client logic from other logic below
// Send client issues sendId scoped access tokens that don't require any claims updates. The send client
// also doesn't issue a refresh token so we don't have access token refresh scenarios to worry about.
if (context.Client.ClientId == BitwardenClient.Send)
{
// preserve all claims that were already on context.Subject