From 13190bfeb88452c33c740d3daa89c0574f6b6cc6 Mon Sep 17 00:00:00 2001 From: Nebz <28622481+NebzHB@users.noreply.github.com> Date: Sat, 3 Feb 2024 09:12:51 +0100 Subject: [PATCH] fix missing amazonPage reference instead of amazon.de --- alexa-remote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alexa-remote.js b/alexa-remote.js index 7d7e11f..bec8528 100755 --- a/alexa-remote.js +++ b/alexa-remote.js @@ -949,7 +949,7 @@ class AlexaRemote extends EventEmitter { getAuthApiBearerToken(callback) { if (!this.alexaCookie) this.alexaCookie = require('alexa-cookie2'); const deviceAppName = (this._options.formerRegistrationData && this._options.formerRegistrationData.deviceAppName) || this.alexaCookie.getDeviceAppName(); // Use the App Name from last cookie response or use default one - this.httpsGet(true, 'https://api.amazon.de/auth/token', (err, res) => { + this.httpsGet(true, `https://api.${this._options.amazonPage}/auth/token`, (err, res) => { if (err) { this._options.logger && this._options.logger(`Alexa-Remote: Error getting auth token: ${err.message}`); callback(err);