aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/core/plugins/plugin.service.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts
index ee80d4d39..6a1a46e73 100644
--- a/client/src/app/core/plugins/plugin.service.ts
+++ b/client/src/app/core/plugins/plugin.service.ts
@@ -271,6 +271,13 @@ export class PluginService implements ClientHook {
271 return this.authService.isLoggedIn() 271 return this.authService.isLoggedIn()
272 }, 272 },
273 273
274 getAuthHeader: () => {
275 if (!this.authService.isLoggedIn()) return undefined
276
277 const value = this.authService.getRequestHeaderValue()
278 return { 'Authorization': value }
279 },
280
274 notifier: { 281 notifier: {
275 info: (text: string, title?: string, timeout?: number) => this.notifier.info(text, title, timeout), 282 info: (text: string, title?: string, timeout?: number) => this.notifier.info(text, title, timeout),
276 error: (text: string, title?: string, timeout?: number) => this.notifier.error(text, title, timeout), 283 error: (text: string, title?: string, timeout?: number) => this.notifier.error(text, title, timeout),