@effect.healthcare/messenger 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/messenger.js +1 -1
- package/package.json +1 -1
- package/src/messenger.ts +1 -1
package/dist/messenger.js
CHANGED
|
@@ -280,7 +280,7 @@ export class Messenger extends Component {
|
|
|
280
280
|
*/
|
|
281
281
|
_negotiate = async (token) => {
|
|
282
282
|
const response = await fetch(this.endpoint, {
|
|
283
|
-
headers: { Authorization: `
|
|
283
|
+
headers: { Authorization: `Bearer ${token}` },
|
|
284
284
|
});
|
|
285
285
|
const { url } = await response.json();
|
|
286
286
|
return url;
|
package/package.json
CHANGED
package/src/messenger.ts
CHANGED
|
@@ -350,7 +350,7 @@ export class Messenger extends Component {
|
|
|
350
350
|
*/
|
|
351
351
|
private _negotiate = async (token: string): Promise<string> => {
|
|
352
352
|
const response = await fetch(this.endpoint as string, {
|
|
353
|
-
headers: { Authorization: `
|
|
353
|
+
headers: { Authorization: `Bearer ${token}` },
|
|
354
354
|
});
|
|
355
355
|
const { url } = await response.json();
|
|
356
356
|
return url;
|