mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Scenario test fetching auth token
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user