Skip to content

Commit af165a7

Browse files
author
Bill Barnes
committed
Fixes #11
1 parent 3283bd6 commit af165a7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "botframework-directlinejs",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "client library for the Microsoft Bot Framework Direct Line 3.0 protocol",
55
"main": "built/directLine.js",
66
"types": "built/directLine.d.ts",

src/directLine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ export class DirectLine implements IBotConnection {
593593
}
594594
})
595595
.do(result => {
596-
this.token = result.response.token;
596+
if (!this.secret)
597+
this.token = result.response.token;
597598
this.streamUrl = result.response.streamUrl;
598599
})
599600
.map(_ => null)

0 commit comments

Comments
 (0)