diff options
Diffstat (limited to 'client/src/root-helpers/users/user-local-storage-keys.ts')
-rw-r--r-- | client/src/root-helpers/users/user-local-storage-keys.ts | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/client/src/root-helpers/users/user-local-storage-keys.ts b/client/src/root-helpers/users/user-local-storage-keys.ts index 5f915899c..c3934ae3c 100644 --- a/client/src/root-helpers/users/user-local-storage-keys.ts +++ b/client/src/root-helpers/users/user-local-storage-keys.ts | |||
@@ -1,15 +1,25 @@ | |||
1 | export const UserLocalStorageKeys = { | 1 | export const UserLocalStorageKeys = { |
2 | ID: 'id', | 2 | ID: 'id', |
3 | USERNAME: 'username', | ||
3 | ROLE: 'role', | 4 | ROLE: 'role', |
4 | EMAIL: 'email', | 5 | EMAIL: 'email', |
6 | |||
5 | VIDEOS_HISTORY_ENABLED: 'videos-history-enabled', | 7 | VIDEOS_HISTORY_ENABLED: 'videos-history-enabled', |
6 | USERNAME: 'username', | ||
7 | NSFW_POLICY: 'nsfw_policy', | 8 | NSFW_POLICY: 'nsfw_policy', |
8 | WEBTORRENT_ENABLED: 'peertube-videojs-' + 'webtorrent_enabled', | 9 | P2P_ENABLED: 'peertube-videojs-' + 'webtorrent_enabled', |
10 | |||
9 | AUTO_PLAY_VIDEO: 'auto_play_video', | 11 | AUTO_PLAY_VIDEO: 'auto_play_video', |
10 | SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO: 'auto_play_next_video', | 12 | AUTO_PLAY_NEXT_VIDEO: 'auto_play_next_video', |
11 | AUTO_PLAY_VIDEO_PLAYLIST: 'auto_play_video_playlist', | 13 | AUTO_PLAY_VIDEO_PLAYLIST: 'auto_play_video_playlist', |
14 | |||
12 | THEME: 'theme', | 15 | THEME: 'theme', |
13 | LAST_ACTIVE_THEME: 'last_active_theme', | 16 | LAST_ACTIVE_THEME: 'last_active_theme', |
17 | |||
14 | VIDEO_LANGUAGES: 'video_languages' | 18 | VIDEO_LANGUAGES: 'video_languages' |
15 | } | 19 | } |
20 | |||
21 | export const UserTokenLocalStorageKeys = { | ||
22 | ACCESS_TOKEN: 'access_token', | ||
23 | REFRESH_TOKEN: 'refresh_token', | ||
24 | TOKEN_TYPE: 'token_type' | ||
25 | } | ||