feat: update fixing error lint

This commit is contained in:
hanif salafi 2025-01-05 00:11:14 +07:00
parent 73440559ad
commit 59cf66c97a
64 changed files with 107 additions and 105 deletions

View File

@ -14,10 +14,12 @@ COPY package*.json pnpm-lock.yaml* /usr/src/app/
COPY vendor/ckeditor5 /usr/src/app/
# Install dependencies using pnpm
RUN npm install next --legacy-peer-deps
RUN pnpm install
RUN pnpm add next-intl
RUN pnpm add nextra
# RUN npm install next --legacy-peer-deps
# RUN pnpm install
# RUN pnpm add next-intl
# RUN pnpm add nextra
RUN pnpm install --frozen-lockfile
# Copying source files
COPY . /usr/src/app

View File

@ -99,7 +99,7 @@ const AccountListTable = () => {
page - 1,
filtered ? filtered.join(",") : ""
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * 10 + index + 1;

View File

@ -125,7 +125,7 @@ const CampaignListTable = () => {
try {
loading();
const res = await getMediaBlastCampaignPage(page - 1);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * 10 + index + 1;

View File

@ -151,7 +151,7 @@ const BroadcastTable = () => {
categoryFilter?.sort().join(","),
statusFilter?.sort().join(",")
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * Number(showData) + index + 1;

View File

@ -81,7 +81,7 @@ const CalendarView = ({ categories }: CalendarViewProps) => {
const res = await getAgendaSettingsList(INITIAL_YEAR, INITIAL_MONTH, "");
console.log("API Response:", res);
if (res.error) {
if (res?.error) {
return;
}

View File

@ -92,7 +92,7 @@ const BlogTable = () => {
async function fetchData() {
try {
const res = await paginationBlog(limit, page - 1, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -142,7 +142,7 @@ const TableAudio = () => {
endDateString,
search
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -138,7 +138,7 @@ const TableImage = () => {
endDateString,
search
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -127,7 +127,7 @@ const TableTeks = () => {
try {
const isForSelf = Number(roleId) == 4;
const res = await listNulisAI(limit, page - 1, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -128,7 +128,7 @@ const TableSPIT = () => {
try {
const res = await listSPIT(page - 1, limit, search, isPublish);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -138,7 +138,7 @@ const TableTeks = () => {
endDateString,
search
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -138,7 +138,7 @@ const TableImage = () => {
endDateString,
search
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -111,7 +111,7 @@ const MediahubTable = () => {
async function fetchData() {
try {
const res = await getPlanningSentPagination(limit, page - 1, 1, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -110,7 +110,7 @@ const MedsosTable = () => {
async function fetchData() {
try {
const res = await getPlanningSentPagination(limit, page - 1, 2, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -87,7 +87,7 @@ const EventTable = () => {
async function fetchData() {
try {
const res = await paginationSchedule(limit, page - 1, 2, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -100,7 +100,7 @@ const PressConferenceTable = () => {
async function fetchData() {
try {
const res = await paginationSchedule(limit, page - 1, 1, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -101,7 +101,7 @@ const PressReleaseTable = () => {
async function fetchData() {
try {
const res = await paginationSchedule(limit, page - 1, 3, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -116,7 +116,7 @@ const TaskTable = () => {
limit,
isSpecificAttention ? "atensi-khusus" : "tugas-harian"
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -112,7 +112,7 @@ const TaskPlanMediahubTable = (props: {
async function fetchData() {
// try {
// const res = await ticketingPagination("", limit, page - 1);
// const data = res.data?.data;
// const data = res?.data?.data;
console.log("datgaa", data);
const contentData = data;
contentData.forEach((item: any, index: number) => {

View File

@ -170,8 +170,8 @@ export default function DetailDaily() {
async function getWeeklyPlanning() {
const res = await getWeeklyPlanList(new Date().getDate(), 1);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -184,8 +184,8 @@ export default function EditDaily() {
async function getWeeklyPlanning() {
const res = await getWeeklyPlanList(new Date().getDate(), 1);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -132,8 +132,8 @@ export default function CreateDaily() {
async function getWeeklyPlanning() {
const res = await getWeeklyPlanList(new Date().getDate(), 1);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -136,8 +136,8 @@ export default function CreateMonthly() {
async function getMonthlyPlanning() {
const res = await getMonthlyPlanList(new Date().getDate(), 1);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -106,8 +106,8 @@ export default function DetailTaskPlanMediahub() {
const TODAY = dayjs().format("YYYY-MM-DD");
const res = await getWeeklyPlanList(planningData?.date || TODAY, 1);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -112,7 +112,7 @@ const TaskPlanMediahubTable = (props: {
async function fetchData() {
// try {
// const res = await ticketingPagination("", limit, page - 1);
// const data = res.data?.data;
// const data = res?.data?.data;
console.log("datgaa", data);
const contentData = data;
contentData.forEach((item: any, index: number) => {

View File

@ -168,8 +168,8 @@ export default function CreateMonthly() {
async function getWeeklyPlanning() {
const res = await getWeeklyPlanList(new Date().getDate(), 2);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -135,8 +135,8 @@ export default function CreateMonthly() {
async function getMonthlyPlanning() {
const res = await getMonthlyPlanList(new Date().getDate(), 2);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -106,8 +106,8 @@ export default function DetailTaskPlanMediahub() {
const TODAY = dayjs().format("YYYY-MM-DD");
const res = await getWeeklyPlanList(planningData?.date || TODAY, 1);
if (res.data !== null) {
const rawUser = res.data?.data;
if (res?.data !== null) {
const rawUser = res?.data?.data;
const optionArr = rawUser.map((option: any) => ({
id: option.id,
label: option.title,

View File

@ -148,7 +148,7 @@ const ContentTable = () => {
endDateString,
search
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -93,7 +93,7 @@ const RecentActivity: React.FC = () => {
startDateString,
endDateString
);
const data = res.data?.data;
const data = res?.data?.data;
const { content } = data || [];
// Calculate counts for each typeId

View File

@ -135,7 +135,7 @@ const EscalationTable = () => {
limit,
search
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -134,7 +134,7 @@ const EscalationTable = () => {
limit,
search
);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -129,7 +129,7 @@ const TableAudio = () => {
async function fetchData() {
try {
const res = await listTicketingInternal(page - 1, limit, search);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -100,7 +100,7 @@ const TaskTable = () => {
async function fetchData() {
try {
const res = await listContest(search, limit, page - 1);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -107,7 +107,7 @@ const FaqTable = () => {
async function fetchData() {
try {
const res = await getFaqList();
const contentData = res.data?.data;
const contentData = res?.data?.data;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;
});

View File

@ -107,7 +107,7 @@ const FaqTable = () => {
async function fetchData() {
try {
const res = await getFaqList();
const contentData = res.data?.data;
const contentData = res?.data?.data;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;
});

View File

@ -107,7 +107,7 @@ const FaqTable = () => {
async function fetchData() {
try {
const res = await getFaqList();
const contentData = res.data?.data;
const contentData = res?.data?.data;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;
});

View File

@ -107,7 +107,7 @@ const FaqTable = () => {
async function fetchData() {
try {
const res = await getFaqList();
const contentData = res.data?.data;
const contentData = res?.data?.data;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;
});

View File

@ -107,7 +107,7 @@ const FaqTable = () => {
async function fetchData() {
try {
const res = await getFaqList();
const contentData = res.data?.data;
const contentData = res?.data?.data;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;
});

View File

@ -107,7 +107,7 @@ const FaqTable = () => {
async function fetchData() {
try {
const res = await getFaqList();
const contentData = res.data?.data;
const contentData = res?.data?.data;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;
});

View File

@ -108,7 +108,7 @@ const TicketingTable = () => {
async function fetchData() {
try {
const res = await ticketingPagination('', limit, page-1);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -151,12 +151,12 @@ const Galery = (props: any) => {
async function checkWishlist(uploadId: any) {
if (userId) {
const res = await checkWishlistStatus(uploadId);
console.log(res.data?.data);
// const isAlreadyOnWishlist = res.data?.data == "-1" ? false : true;
console.log(res?.data?.data);
// const isAlreadyOnWishlist = res?.data?.data == "-1" ? false : true;
// if (isAlreadyOnWishlist == true) {
// warning("Konten sudah Ada", `#`);
// }
setWishlistId(res.data?.data); // setIsSaved(isAlreadyOnWishlist);
setWishlistId(res?.data?.data); // setIsSaved(isAlreadyOnWishlist);
// console.log("isSave", isAlreadyOnWishlist);
}
}
@ -174,8 +174,8 @@ const Galery = (props: any) => {
checkWishlist(uploadId);
const res = await saveWishlist(data);
if (res.error) {
error(res.message);
if (res?.error) {
error(res?.message);
console.log("simpan data", res);
return false;
}
@ -188,7 +188,7 @@ const Galery = (props: any) => {
loading();
const resDelete = await deleteWishlist(id);
if (resDelete.error) {
if (resDelete?.error) {
error(resDelete.message);
return false;
}

View File

@ -151,12 +151,12 @@ const Galery = (props: any) => {
async function checkWishlist(uploadId: any) {
if (userId) {
const res = await checkWishlistStatus(uploadId);
console.log(res.data?.data);
// const isAlreadyOnWishlist = res.data?.data == "-1" ? false : true;
console.log(res?.data?.data);
// const isAlreadyOnWishlist = res?.data?.data == "-1" ? false : true;
// if (isAlreadyOnWishlist == true) {
// warning("Konten sudah Ada", `#`);
// }
setWishlistId(res.data?.data); // setIsSaved(isAlreadyOnWishlist);
setWishlistId(res?.data?.data); // setIsSaved(isAlreadyOnWishlist);
// console.log("isSave", isAlreadyOnWishlist);
}
}
@ -174,7 +174,7 @@ const Galery = (props: any) => {
checkWishlist(uploadId);
const res = await saveWishlist(data);
if (res.error) {
if (res?.error) {
error(res.message);
console.log("simpan data", res);
return false;
@ -188,7 +188,7 @@ const Galery = (props: any) => {
loading();
const resDelete = await deleteWishlist(id);
if (resDelete.error) {
if (resDelete?.error) {
error(resDelete.message);
return false;
}

View File

@ -119,7 +119,7 @@ const page = (props: any) => {
const res = await generateDataArticle(request);
close();
if (res.error) {
if (res?.error) {
console.error(res.message);
return false;
}

View File

@ -86,7 +86,7 @@ const page = (props: any) => {
loading();
const resDelete = await deleteWishlist(id);
if (resDelete.error) {
if (resDelete?.error) {
error(resDelete.message);
return false;
}
@ -120,12 +120,12 @@ const page = (props: any) => {
async function checkWishlist(uploadId: any) {
if (userId) {
const res = await checkWishlistStatus(uploadId);
console.log(res.data?.data);
// const isAlreadyOnWishlist = res.data?.data == "-1" ? false : true;
console.log(res?.data?.data);
// const isAlreadyOnWishlist = res?.data?.data == "-1" ? false : true;
// if (isAlreadyOnWishlist == true) {
// warning("Konten sudah Ada", `#`);
// }
setWishlistId(res.data?.data); // setIsSaved(isAlreadyOnWishlist);
setWishlistId(res?.data?.data); // setIsSaved(isAlreadyOnWishlist);
// console.log("isSave", isAlreadyOnWishlist);
}
}
@ -143,7 +143,7 @@ const page = (props: any) => {
checkWishlist(uploadId);
const res = await saveWishlist(data);
if (res.error) {
if (res?.error) {
error(res.message);
console.log("simpan data", res);
return false;

View File

@ -89,9 +89,9 @@ const DetailVideo = () => {
async function checkWishlist() {
if (userId) {
const res = await checkWishlistStatus(slug.split("-")?.[0]);
console.log(res.data?.data);
const isAlreadyOnWishlist = res.data?.data !== "-1";
setWishlistId(res.data?.data);
console.log(res?.data?.data);
const isAlreadyOnWishlist = res?.data?.data !== "-1";
setWishlistId(res?.data?.data);
setIsSaved(isAlreadyOnWishlist);
}
}

View File

@ -121,8 +121,8 @@ export default function FormCollaboration() {
async function getTicketPriority() {
const res = await getTicketingPriority();
if (res.data !== null) {
const rawData = res.data?.data;
if (res?.data !== null) {
const rawData = res?.data?.data;
setTicketPriority(rawData);
}
}
@ -130,8 +130,8 @@ export default function FormCollaboration() {
async function getUser() {
const res = await getCuratorUser();
if (res.data !== null) {
const rawUser = res.data?.data?.content;
if (res?.data !== null) {
const rawUser = res?.data?.data?.content;
console.log("raw user", rawUser);
// Tentukan tipe array sebagai Option[]

View File

@ -107,8 +107,8 @@ export default function FormDetailEscalation() {
async function getTicketReply() {
const res = await getTicketingInternalDiscussion(id);
if (res.data !== null) {
setTicketReply(res.data?.data);
if (res?.data !== null) {
setTicketReply(res?.data?.data);
}
}

View File

@ -103,8 +103,8 @@ export default function FormDetailInternal() {
async function getTicketReply() {
const res = await getTicketingInternalDiscussion(id);
if (res.data !== null) {
setTicketReply(res.data?.data);
if (res?.data !== null) {
setTicketReply(res?.data?.data);
}
}

View File

@ -106,8 +106,8 @@ export default function FormEditInternal() {
async function getTicketReply() {
const res = await getTicketingInternalDiscussion(id);
if (res.data !== null) {
setTicketReply(res.data?.data);
if (res?.data !== null) {
setTicketReply(res?.data?.data);
}
}

View File

@ -121,8 +121,8 @@ export default function FormInternal() {
async function getTicketPriority() {
const res = await getTicketingPriority();
if (res.data !== null) {
const rawData = res.data?.data;
if (res?.data !== null) {
const rawData = res?.data?.data;
setTicketPriority(rawData);
}
}
@ -130,8 +130,8 @@ export default function FormInternal() {
async function getUser() {
const res = await getCuratorUser();
if (res.data !== null) {
const rawUser = res.data?.data?.content;
if (res?.data !== null) {
const rawUser = res?.data?.data?.content;
console.log("raw user", rawUser);
// Tentukan tipe array sebagai Option[]

View File

@ -259,7 +259,7 @@ export default function FormAudio() {
const res = await generateDataArticle(request);
close();
if (res.error) {
if (res?.error) {
console.error(res.message);
return false;
}

View File

@ -235,7 +235,7 @@ export default function FormImageAI() {
const res = await generateDataArticle(request);
close();
if (res.error) {
if (res?.error) {
console.error(res.message);
return false;
}

View File

@ -286,7 +286,7 @@ export default function FormImage() {
const res = await generateDataArticle(request);
close();
if (res.error) {
if (res?.error) {
console.error(res.message);
return false;
}

View File

@ -321,7 +321,7 @@ export default function FormConvertSPIT() {
const res = await generateDataArticle(request);
close();
if (res.error) {
if (res?.error) {
console.error(res.message);
return false;
}

View File

@ -259,7 +259,7 @@ export default function FormTeks() {
const res = await generateDataArticle(request);
close();
if (res.error) {
if (res?.error) {
console.error(res.message);
return false;
}

View File

@ -259,7 +259,7 @@ export default function FormVideo() {
const res = await generateDataArticle(request);
close();
if (res.error) {
if (res?.error) {
console.error(res.message);
return false;
}

View File

@ -21,7 +21,7 @@ const HeaderBannerSatker = () => {
useEffect(() => {
// async function initState() {
// const res = await listCarousel();
// setContent(res.data?.data);
// setContent(res?.data?.data);
// setCenterPadding(`${Math.trunc(Number(window.innerWidth) / 10 + 40)}px`);
// }

View File

@ -21,7 +21,7 @@ const HeaderBanner = () => {
useEffect(() => {
// async function initState() {
// const res = await listCarousel();
// setContent(res.data?.data);
// setContent(res?.data?.data);
// setCenterPadding(`${Math.trunc(Number(window.innerWidth) / 10 + 40)}px`);
// }

View File

@ -108,7 +108,7 @@ const ListViewSocialMediaTable = () => {
async function fetchData() {
try {
const res = await getPlanningPagination(page - 1, "", 10, 2, 3);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -108,7 +108,7 @@ const ListViewTable = () => {
async function fetchData() {
try {
const res = await getPlanningPagination(page - 1, "", 10, 1, 3);
const data = res.data?.data;
const data = res?.data?.data;
const contentData = data?.content;
contentData.forEach((item: any, index: number) => {
item.no = (page - 1) * limit + index + 1;

View File

@ -118,7 +118,7 @@ export default function SingleViewSocialMediaTable() {
async function getMonthlyPlanning(dates: number) {
const res = await getMonthlyPlanList(dates, 2);
setMonthlyList(res.data?.data);
setMonthlyList(res?.data?.data);
}
async function getWeeklyPlanning(
@ -127,10 +127,10 @@ export default function SingleViewSocialMediaTable() {
) {
if (id) {
const res = await getWeeklyPlanListByParentId(id, 2);
setWeeklyList(res.data?.data);
setWeeklyList(res?.data?.data);
} else {
const res = await getWeeklyPlanList(date, 2, true);
setWeeklyList(res.data?.data);
setWeeklyList(res?.data?.data);
}
}
@ -230,7 +230,7 @@ export default function SingleViewSocialMediaTable() {
loading();
const res = await getPlanningMonthlyPerSocmed(month, year, 2, parentId);
close();
setPlanningData(res.data?.data);
setPlanningData(res?.data?.data);
}
function getPrevMonth() {

View File

@ -92,7 +92,7 @@ export default function SingleViewTable() {
async function getMonthlyPlanning(dates: number) {
const res = await getMonthlyPlanList(dates, 1);
console.log("monthsss", res);
setMonthlyList(res.data?.data);
setMonthlyList(res?.data?.data);
}
async function getWeeklyPlanning(
@ -101,10 +101,10 @@ export default function SingleViewTable() {
) {
if (id) {
const res = await getWeeklyPlanListByParentId(id, 1);
setWeeklyList(res.data?.data);
setWeeklyList(res?.data?.data);
} else {
const res = await getWeeklyPlanList(date, 1, true);
setWeeklyList(res.data?.data);
setWeeklyList(res?.data?.data);
}
}

View File

@ -45,8 +45,8 @@ axiosInterceptorInstance.interceptors.response.use(
};
console.log("refresh token ", data);
const res = await login(data);
const { access_token } = res.data;
const { refresh_token } = res.data;
const { access_token } = res?.data;
const { refresh_token } = res?.data;
if (access_token) {
Cookies.set("access_token", access_token);
Cookies.set("refresh_token", refresh_token);