Skip to content

Commit 2f11fe9

Browse files
Fix: update GetRefreshToken() doc to reflect RT may come from request or response
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 98682d1 commit 2f11fe9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/client/Microsoft.Identity.Client/Extensibility/AuthenticationResultExtensions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ public static class AuthenticationResultExtensions
1515
/// </summary>
1616
/// <param name="result">The authentication result.</param>
1717
/// <returns>
18-
/// The refresh token string if the result is from a confidential client flow and the token
19-
/// response included a refresh token; <c>null</c> otherwise. Refresh tokens are not exposed
18+
/// The refresh token string associated with the result for confidential client flows, if available.
19+
/// This may be a refresh token returned in the token response or a refresh token used for the
20+
/// acquisition and carried on the result; <c>null</c> otherwise. Refresh tokens are not exposed
2021
/// for public client flows, client credentials, managed identity, or when the token was
2122
/// served from cache. For the normal (non-long-running) On-Behalf-Of flow, MSAL intentionally
2223
/// clears the refresh token, so this method will also return <c>null</c>.

0 commit comments

Comments
 (0)