Skip to content

Commit

Permalink
Merge pull request #230 from NebzHB/patch-1
Browse files Browse the repository at this point in the history
fix missing amazonPage reference instead of amazon.de
  • Loading branch information
Apollon77 committed Feb 3, 2024
2 parents e2ae2da + 13190bf commit 7ab0d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alexa-remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ab0d8c

Please sign in to comment.