Skip to content

Commit d9a2e67

Browse files
committed
chore: deprecate the public methods too
1 parent ba3440a commit d9a2e67

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/deviceOauthService.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function makeRequest<T extends JsonMap>(options: HttpRequest): Promise<T>
7777
/**
7878
* THIS CLASS IS DEPRECATED AND WILL BE REMOVED MID JANUARY 2026.
7979
*
80-
* @deprecated Use WebOAuthServer instead
80+
* @deprecated Use other oauth flows instead
8181
*/
8282
export class DeviceOauthService extends AsyncCreatable<OAuth2Config> {
8383
public static RESPONSE_TYPE = 'device_code';
@@ -98,9 +98,7 @@ export class DeviceOauthService extends AsyncCreatable<OAuth2Config> {
9898
}
9999

100100
/**
101-
* Begin the authorization flow by requesting the login
102-
*
103-
* @returns {Promise<DeviceCodeResponse>}
101+
* @deprecated Will be removed mid January 2026
104102
*/
105103
public async requestDeviceLogin(): Promise<DeviceCodeResponse> {
106104
const deviceFlowRequestUrl = this.getDeviceFlowRequestUrl();
@@ -109,9 +107,7 @@ export class DeviceOauthService extends AsyncCreatable<OAuth2Config> {
109107
}
110108

111109
/**
112-
* Polls the server until successful response OR max attempts have been made
113-
*
114-
* @returns {Promise<Nullable<DeviceCodePollingResponse>>}
110+
* @deprecated Will be removed mid January 2026
115111
*/
116112
public async awaitDeviceApproval(loginData: DeviceCodeResponse): Promise<Nullable<DeviceCodePollingResponse>> {
117113
const deviceFlowRequestUrl = this.getDeviceFlowRequestUrl();
@@ -121,9 +117,7 @@ export class DeviceOauthService extends AsyncCreatable<OAuth2Config> {
121117
}
122118

123119
/**
124-
* Creates and saves new AuthInfo
125-
*
126-
* @returns {Promise<AuthInfo>}
120+
* @deprecated Will be removed mid January 2026
127121
*/
128122
public async authorizeAndSave(approval: DeviceCodePollingResponse): Promise<AuthInfo> {
129123
const authInfo = await AuthInfo.create({

0 commit comments

Comments
 (0)