🐛 fix: access cookie via header on logout #16

Merged
vivy-agent merged 2 commits from feat/logout into main 2026-02-15 23:17:00 +07:00
7 changed files with 17 additions and 13 deletions
Showing only changes of commit 63fcd8587b - Show all commits

View File

@ -26,5 +26,5 @@ interface Preference {
adultAlert: string; adultAlert: string;
videoQuality: string; videoQuality: string;
serviceDefaultId: null; serviceDefaultId: null;
hideContries: any[]; hideContries: string[];
} }

View File

@ -4,7 +4,7 @@ import { jwtDecode } from "../../../../helpers/http/jwt/decode";
import { redis } from "../../../../utils/databases/redis/connection"; import { redis } from "../../../../utils/databases/redis/connection";
import { deleteUserSessionRepository } from "../../../userSession/repositories/deleteUserSession.repository"; import { deleteUserSessionRepository } from "../../../userSession/repositories/deleteUserSession.repository";
export const logoutService = async (jwtToken?: any) => { export const logoutService = async (jwtToken?: string) => {
try { try {
if (!jwtToken) throw new AppError(403, "No auth token provided"); if (!jwtToken) throw new AppError(403, "No auth token provided");