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