From d9d2d032c8fdb339d8252c1e0fd640b9d990daab Mon Sep 17 00:00:00 2001 From: Alex Jerabek <38896772+AlexJerabek@users.noreply.github.com> Date: Wed, 22 Jul 2026 17:55:45 -0700 Subject: [PATCH] [office-runtime] Add deprecation note for OfficeRuntime.auth stuff (#75299) --- types/office-runtime/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/office-runtime/index.d.ts b/types/office-runtime/index.d.ts index c3eb885934ead5..9082b749d20abe 100644 --- a/types/office-runtime/index.d.ts +++ b/types/office-runtime/index.d.ts @@ -259,11 +259,15 @@ declare namespace OfficeRuntime { } /** * Contains authorization related APIs. + * + * @deprecated Use `Office.auth` instead. */ const auth: Auth; /** * Provides options for the user experience when Office obtains an access token to the add-in from AAD v. 2.0 with the `getAccessToken` method. - * + * + * @deprecated Use the {@link https://learn.microsoft.com/javascript/api/office/office.authoptions | Office.AuthOptions} interface instead. + * * @remarks * * The methods in this interface are equivalent to those in the `Office.AuthOptions` interface. @@ -324,6 +328,8 @@ declare namespace OfficeRuntime { } /** * Interface that contains authorization related APIs. + * + * @deprecated Use the {@link https://learn.microsoft.com/javascript/api/office/office.auth | Office.Auth} interface instead. * * @remarks *