mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Fix bug where authorisation token being truncated by sonos (#86)
This commit is contained in:
13
src/smapi.ts
13
src/smapi.ts
@@ -32,7 +32,6 @@ import {
|
||||
isExpiredTokenError,
|
||||
MissingLoginTokenError,
|
||||
SmapiAuthTokens,
|
||||
smapiTokenAsString,
|
||||
SMAPI_FAULT_LOGIN_UNAUTHORIZED,
|
||||
ToSmapiFault,
|
||||
} from "./smapi_auth";
|
||||
@@ -532,10 +531,14 @@ function bindSmapiSoapServiceToExpress(
|
||||
httpHeaders: [
|
||||
{
|
||||
httpHeader: {
|
||||
header: "Authorization",
|
||||
value: `Bearer ${smapiTokenAsString(
|
||||
credentials.loginToken
|
||||
)}`,
|
||||
header: "bnbt",
|
||||
value: credentials.loginToken.token,
|
||||
},
|
||||
},
|
||||
{
|
||||
httpHeader: {
|
||||
header: "bnbk",
|
||||
value: credentials.loginToken.key,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user