add debugging
This commit is contained in:
parent
227ad7e0b4
commit
bc97d009ae
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ const client = createClient<paths>({ baseUrl: import.meta.env.VITE_API_URL })
|
||||||
|
|
||||||
const UnauthorizedHandlerMiddleware: Middleware = {
|
const UnauthorizedHandlerMiddleware: Middleware = {
|
||||||
async onResponse({ response }) {
|
async onResponse({ response }) {
|
||||||
|
console.debug(response.headers.getSetCookie())
|
||||||
|
console.debug(response.headers.get('set-cookie'))
|
||||||
if (response.status === 401) {
|
if (response.status === 401) {
|
||||||
dispatchMessage('auth:unauthorized', null)
|
dispatchMessage('auth:unauthorized', null)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue