diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-22 11:29:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-22 11:29:06 +0200 |
commit | 4eca42ffb4a1f17779d931b84da96ef8d9b3997e (patch) | |
tree | 6d6d46627aeb008f50c7287023281bdae4e22970 /client/src/types | |
parent | 0ea9f463a9dc642ec44af4887b97e9dd63b323ef (diff) | |
download | PeerTube-4eca42ffb4a1f17779d931b84da96ef8d9b3997e.tar.gz PeerTube-4eca42ffb4a1f17779d931b84da96ef8d9b3997e.tar.zst PeerTube-4eca42ffb4a1f17779d931b84da96ef8d9b3997e.zip |
Add getAuthHeader client helper
Diffstat (limited to 'client/src/types')
-rw-r--r-- | client/src/types/register-client-option.model.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts index 16c921344..8802edc32 100644 --- a/client/src/types/register-client-option.model.ts +++ b/client/src/types/register-client-option.model.ts | |||
@@ -21,6 +21,8 @@ export type RegisterClientHelpers = { | |||
21 | 21 | ||
22 | isLoggedIn: () => boolean | 22 | isLoggedIn: () => boolean |
23 | 23 | ||
24 | getAuthHeader: () => { 'Authorization': string } | undefined | ||
25 | |||
24 | getSettings: () => Promise<{ [ name: string ]: string }> | 26 | getSettings: () => Promise<{ [ name: string ]: string }> |
25 | 27 | ||
26 | getServerConfig: () => Promise<ServerConfig> | 28 | getServerConfig: () => Promise<ServerConfig> |