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: /