From 49e7e4d9ffd16cba7a721f6d3d3203decf4f4b2c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Oct 2022 14:28:38 +0200 Subject: Fix token injection if unlogged user --- client/src/standalone/videos/shared/auth-http.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/standalone/videos/shared') 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 { } getHeaderTokenValue () { + if (!this.userOAuthTokens) return null + return `${this.userOAuthTokens.tokenType} ${this.userOAuthTokens.accessToken}` } -- cgit v1.2.3