diff options
Diffstat (limited to 'client/src/root-helpers/logger.ts')
-rw-r--r-- | client/src/root-helpers/logger.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/root-helpers/logger.ts b/client/src/root-helpers/logger.ts index 0d486c433..d1fdf73aa 100644 --- a/client/src/root-helpers/logger.ts +++ b/client/src/root-helpers/logger.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { ClientLogCreate } from '@shared/models/server' | 1 | import { ClientLogCreate } from '@shared/models/server' |
2 | import { peertubeLocalStorage } from './peertube-web-storage' | 2 | import { peertubeLocalStorage } from './peertube-web-storage' |
3 | import { UserTokens } from './users' | 3 | import { OAuthUserTokens } from './users' |
4 | 4 | ||
5 | export type LoggerHook = (message: LoggerMessage, meta?: LoggerMeta) => void | 5 | export type LoggerHook = (message: LoggerMessage, meta?: LoggerMeta) => void |
6 | export type LoggerLevel = 'info' | 'warn' | 'error' | 6 | export type LoggerLevel = 'info' | 'warn' | 'error' |
@@ -56,7 +56,7 @@ class Logger { | |||
56 | }) | 56 | }) |
57 | 57 | ||
58 | try { | 58 | try { |
59 | const tokens = UserTokens.getUserTokens(peertubeLocalStorage) | 59 | const tokens = OAuthUserTokens.getUserTokens(peertubeLocalStorage) |
60 | 60 | ||
61 | if (tokens) headers.set('Authorization', `${tokens.tokenType} ${tokens.accessToken}`) | 61 | if (tokens) headers.set('Authorization', `${tokens.tokenType} ${tokens.accessToken}`) |
62 | } catch (err) { | 62 | } catch (err) { |