From d672b111941a938c91a0af4546a33b70815e53c9 Mon Sep 17 00:00:00 2001 From: James Lees Date: Thu, 18 Feb 2021 12:15:44 +0000 Subject: [PATCH] fix accidental renaming token->deviceToken --- src/base-client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base-client.js b/src/base-client.js index 6a1a1118..604042af 100644 --- a/src/base-client.js +++ b/src/base-client.js @@ -180,13 +180,13 @@ export default class BaseClient { await this._deviceStateStore.setLastSeenUserAgent(userAgent); } - async _registerDevice(deviceToken) { + async _registerDevice(token) { const path = `${this._baseURL}/device_api/v1/instances/${encodeURIComponent( this.instanceId )}/devices/${this._platform}`; const device = { - deviceToken, + token, metadata: { sdkVersion, },