From 57cecad4698ada8a0165df0dfbfff3be859e3ca2 Mon Sep 17 00:00:00 2001 From: simojenki Date: Fri, 26 Feb 2021 12:33:20 +1100 Subject: [PATCH] Scenario test fetching auth token --- src/link_codes.ts | 6 +----- src/smapi.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/link_codes.ts b/src/link_codes.ts index 37bd191..023baa0 100644 --- a/src/link_codes.ts +++ b/src/link_codes.ts @@ -1,12 +1,8 @@ import { v4 as uuid } from 'uuid'; -export type AuthToken = { - value: string, - version: string -} export type Association = { - authToken: AuthToken + authToken: string userId: string nickname: string } diff --git a/src/smapi.ts b/src/smapi.ts index 04a7c79..db3d6c0 100644 --- a/src/smapi.ts +++ b/src/smapi.ts @@ -72,7 +72,7 @@ class SonosSoap { return { getDeviceAuthTokenResult: { authToken: association.authToken.value, - privateKey: association.authToken.version, + privateKey: "", userInfo: { nickname: association.nickname, userIdHashCode: crypto