aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-26 14:28:38 +0200
committerChocobozzz <me@florianbigard.com>2022-10-27 09:13:10 +0200
commit49e7e4d9ffd16cba7a721f6d3d3203decf4f4b2c (patch)
treef51d906fdb3b5f7410b0d127e9c6aa1289da9664 /client/src/standalone
parentb67580aa65cd14be81353c6cfcec9802e093651d (diff)
downloadPeerTube-49e7e4d9ffd16cba7a721f6d3d3203decf4f4b2c.tar.gz
PeerTube-49e7e4d9ffd16cba7a721f6d3d3203decf4f4b2c.tar.zst
PeerTube-49e7e4d9ffd16cba7a721f6d3d3203decf4f4b2c.zip
Fix token injection if unlogged user
Diffstat (limited to 'client/src/standalone')
-rw-r--r--client/src/standalone/videos/shared/auth-http.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/standalone/videos/shared/auth-http.ts b/client/src/standalone/videos/shared/auth-http.ts
index 43af5dff4..95e3b029e 100644
--- a/client/src/standalone/videos/shared/auth-http.ts
+++ b/client/src/standalone/videos/shared/auth-http.ts
@@ -27,6 +27,8 @@ export class AuthHTTP {
27 } 27 }
28 28
29 getHeaderTokenValue () { 29 getHeaderTokenValue () {
30 if (!this.userOAuthTokens) return null
31
30 return `${this.userOAuthTokens.tokenType} ${this.userOAuthTokens.accessToken}` 32 return `${this.userOAuthTokens.tokenType} ${this.userOAuthTokens.accessToken}`
31 } 33 }
32 34