diff --git a/src/app/albums/[id]/page.tsx b/src/app/albums/[id]/page.tsx index 11ea9c6..9d4a0d6 100644 --- a/src/app/albums/[id]/page.tsx +++ b/src/app/albums/[id]/page.tsx @@ -1,7 +1,6 @@ import { cn } from "@/lib/utils"; import { AlbumInfo } from "@/components/albums/AlbumInfo"; import { TrackList } from "@/components/albums/TrackList"; -import { getAuthCookie } from "@/lib/server-auth"; interface AlbumPageProps { params: { @@ -10,11 +9,8 @@ interface AlbumPageProps { } async function getAlbum(id: string) { - const accessToken = getAuthCookie(); - const response = await fetch(`${process.env.NEXT_PUBLIC_API_BASE_URL}/albums/${id}`, { headers: { - "Authorization": `Bearer ${accessToken}`, "Content-Type": "application/json", }, credentials: 'include',