From 85f6913b0ed05d2e0d40cb1895e6d59c5d8eaec7 Mon Sep 17 00:00:00 2001 From: Jesse Brault Date: Wed, 7 Aug 2024 08:41:20 -0500 Subject: [PATCH] fetch() now setting refresh-token cookie. --- src/api/login.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/login.ts b/src/api/login.ts index 1db6cbe..378f8f2 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -9,6 +9,7 @@ const login = async ( import.meta.env.VITE_MME_API_URL + '/auth/login', { body: JSON.stringify({ username, password }), + credentials: 'include', headers: { 'Content-type': 'application/json' },