From 07c1b3e0e57cb1fa42e4772775bfd1437bbc731f Mon Sep 17 00:00:00 2001 From: Patrick Kan <55383971+patrickkfkan@users.noreply.github.com> Date: Thu, 29 Jun 2023 03:26:33 +0800 Subject: [PATCH] fix(OAuth): client identity matching (#421) --- src/core/OAuth.ts | 2 +- src/utils/Constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/OAuth.ts b/src/core/OAuth.ts index 64c62b52..e923a5e0 100644 --- a/src/core/OAuth.ts +++ b/src/core/OAuth.ts @@ -96,7 +96,7 @@ export default class OAuth { client_id: this.#identity.client_id, scope: Constants.OAUTH.SCOPE, device_id: Platform.shim.uuidv4(), - model_name: Constants.OAUTH.MODEL_NAME + device_model: Constants.OAUTH.MODEL_NAME }; const response = await this.#session.http.fetch_function(new URL('/o/oauth2/device/code', Constants.URLS.YT_BASE), { diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index a7b426e4..36ee278b 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -29,7 +29,7 @@ export const OAUTH = Object.freeze({ }), REGEX: Object.freeze({ AUTH_SCRIPT: /