From b6e580cc35cd3a3c42051882f3c3de78aa515aeb Mon Sep 17 00:00:00 2001 From: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com> Date: Fri, 14 Nov 2025 16:28:05 -0500 Subject: [PATCH] Auth/PM-22661 - SendTokenService - improve expired token scenario docs on abstraction (#17371) * PM-22661 - SendTokenService - improve expired token scenario docs on abstraction * PM-22661 - SendTokenService - further clarification --- .../src/auth/send-access/abstractions/send-token.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/auth/send-access/abstractions/send-token.service.ts b/libs/common/src/auth/send-access/abstractions/send-token.service.ts index 3ecdc101892..e423713a283 100644 --- a/libs/common/src/auth/send-access/abstractions/send-token.service.ts +++ b/libs/common/src/auth/send-access/abstractions/send-token.service.ts @@ -13,7 +13,7 @@ export abstract class SendTokenService { /** * Attempts to retrieve a {@link SendAccessToken} for the given sendId. * If the access token is found in session storage and is not expired, then it returns the token. - * If the access token is expired, then it returns a {@link TryGetSendAccessTokenError} expired error. + * If the access token found in session storage is expired, then it returns a {@link TryGetSendAccessTokenError} expired error and clears the token from storage so that a subsequent call can attempt to retrieve a new token. * If an access token is not found in storage, then it attempts to retrieve it from the server (will succeed for sends that don't require any credentials to view). * If the access token is successfully retrieved from the server, then it stores the token in session storage and returns it. * If an access token cannot be granted b/c the send requires credentials, then it returns a {@link TryGetSendAccessTokenError} indicating which credentials are required.