From 87875f4914cf70e7764e1693c9cc774eff0d5146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=A8=D0=B8=D1=82?= =?UTF-8?q?=D0=B8=D0=BA=D0=BE=D0=B2?= Date: Thu, 8 Sep 2022 15:21:58 +0400 Subject: [PATCH] fix(ott-2702): added access token --- src/features/MatchPage/components/LiveMatch/hooks/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/MatchPage/components/LiveMatch/hooks/index.tsx b/src/features/MatchPage/components/LiveMatch/hooks/index.tsx index eeda07dc..d6b046b0 100644 --- a/src/features/MatchPage/components/LiveMatch/hooks/index.tsx +++ b/src/features/MatchPage/components/LiveMatch/hooks/index.tsx @@ -2,6 +2,8 @@ import { useMemo } from 'react' import { API_ROOT } from 'config' +import { readToken } from 'helpers/token' + import { usePageParams } from 'hooks/usePageParams' import { useMatchPageStore } from 'features/MatchPage/store' @@ -32,7 +34,7 @@ export const useLiveMatch = () => { const { chapters } = useChapters({ profile, selectedPlaylist, - url: `${API_ROOT}/video/stream/${sportType}/${matchId}.m3u8`, + url: `${API_ROOT}/video/stream/${sportType}/${matchId}.m3u8?access_token=${readToken()}`, }) const {