refactor: eslint and prettier conflict will be resolved and formatted

This commit is contained in:
Enes Köksal
2026-04-23 17:05:43 +03:00
parent 385b61f29b
commit 3cfea40fbd
219 changed files with 16638 additions and 13663 deletions
+9 -2
View File
@@ -74,7 +74,11 @@ export function createShareSessionValue(
} satisfies ShareSessionPayload);
}
export function createPendingShareValue(token: string, videoId: string, ttlSeconds = PENDING_TTL_SECONDS): string {
export function createPendingShareValue(
token: string,
videoId: string,
ttlSeconds = PENDING_TTL_SECONDS
): string {
return createSignedValue({
token,
videoId,
@@ -102,7 +106,10 @@ export function getShareSessionFromRequest(
return { token: payload.token, passwordVerified: payload.passwordVerified };
}
export function getPendingShareTokenFromRequest(request: NextRequest, videoId: string): string | null {
export function getPendingShareTokenFromRequest(
request: NextRequest,
videoId: string
): string | null {
const cookieName = getPendingShareCookieName(videoId);
const cookieValue = request.cookies.get(cookieName)?.value;
if (!cookieValue) return null;