Scenario test fetching auth token

This commit is contained in:
simojenki
2021-02-26 12:33:20 +11:00
parent e3eec6e93e
commit 57cecad469
2 changed files with 2 additions and 6 deletions

View File

@@ -1,12 +1,8 @@
import { v4 as uuid } from 'uuid'; import { v4 as uuid } from 'uuid';
export type AuthToken = {
value: string,
version: string
}
export type Association = { export type Association = {
authToken: AuthToken authToken: string
userId: string userId: string
nickname: string nickname: string
} }

View File

@@ -72,7 +72,7 @@ class SonosSoap {
return { return {
getDeviceAuthTokenResult: { getDeviceAuthTokenResult: {
authToken: association.authToken.value, authToken: association.authToken.value,
privateKey: association.authToken.version, privateKey: "",
userInfo: { userInfo: {
nickname: association.nickname, nickname: association.nickname,
userIdHashCode: crypto userIdHashCode: crypto