fetch() now setting refresh-token cookie.
This commit is contained in:
parent
401b5bef43
commit
85f6913b0e
@ -9,6 +9,7 @@ const login = async (
|
|||||||
import.meta.env.VITE_MME_API_URL + '/auth/login',
|
import.meta.env.VITE_MME_API_URL + '/auth/login',
|
||||||
{
|
{
|
||||||
body: JSON.stringify({ username, password }),
|
body: JSON.stringify({ username, password }),
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-type': 'application/json'
|
'Content-type': 'application/json'
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user