File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ function PlexAPI(options, deprecatedPort) {
2020 this . port = deprecatedPort || opts . port || PLEX_SERVER_PORT ;
2121 this . username = opts . username ;
2222 this . password = opts . password ;
23+ this . authToken = opts . token ;
2324 this . authenticator = opts . authenticator || this . _credentialsAuthenticator ( ) ;
2425 this . options = opts . options || { } ;
2526 this . options . identifier = this . options . identifier || uuid . v4 ( ) ;
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ describe('Module API', function() {
5050
5151 it ( 'should have configurable options that get sent in every request' , function ( ) {
5252 api = new PlexAPI ( {
53- hostname : 'localhost' ,
53+ hostname : 'localhost' ,
54+ token : 'mock-token' ,
5455 options : {
5556 identifier : 'mock-identifier' ,
5657 product : 'mock-product' ,
@@ -71,7 +72,8 @@ describe('Module API', function() {
7172 'X-Plex-Device' : 'mock-device' ,
7273 'X-Plex-Device-Name' : 'mock-deviceName' ,
7374 'X-Plex-Platform' : 'mock-platform' ,
74- 'X-Plex-Platform-Version' : 'mock-platformVersion'
75+ 'X-Plex-Platform-Version' : 'mock-platformVersion' ,
76+ 'X-Plex-Token' : 'mock-token'
7577 }
7678 } ) ;
7779
You can’t perform that action at this time.
0 commit comments