Ihti.
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai
Received auth_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6MjIsImlhdCI6MTczMTE2MjkwMCwiZXhwIjoxNzMxNTA4NTAwfQ.YAdaaK7xsF4VkmFnDp8bGThLkbdSyl_SvLjCCJ4VIsU
Server-side auth check result: { success: true }
User authenticated, proceeding to route
{ success: false, message: 'Not connected' }
Received auth_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6MjIsImlhdCI6MTczMTE2MjkwMCwiZXhwIjoxNzMxNTA4NTAwfQ.YAdaaK7xsF4VkmFnDp8bGThLkbdSyl_SvLjCCJ4VIsU
Server-side auth check result: { success: true }
User authenticated, proceeding to route
{ success: false, message: 'Not connected' }
60 replies
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai
Received auth_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6MjIsImlhdCI6MTczMTE2MjkwMCwiZXhwIjoxNzMxNTA4NTAwfQ.YAdaaK7xsF4VkmFnDp8bGThLkbdSyl_SvLjCCJ4VIsU
Server-side auth check result: { success: true }
User authenticated, proceeding to route
{ success: false, message: 'Not connected' }
Received auth_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6MjIsImlhdCI6MTczMTE2MjkwMCwiZXhwIjoxNzMxNTA4NTAwfQ.YAdaaK7xsF4VkmFnDp8bGThLkbdSyl_SvLjCCJ4VIsU
Server-side auth check result: { success: true }
User authenticated, proceeding to route
{ success: false, message: 'Not connected' }
60 replies
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai
when i go manually to http://localhost:3000/api/auth/check they sended me :
{
"success": true
}
but when i go to overview dashboard, in server side :
undefined
{ success: false, message: 'Not connected' }
60 replies
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai
Server-side cookie: auth_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6MjIsImlhdCI6MTczMTE2MjI0OCwiZXhwIjoxNzMxNTA3ODQ4fQ.o1YmNkihfVwWs3ZHBgDYmDKn61zUJlNc12SKshKgv9o
at middleware/auth.js
at Object.callAsync (node_modules/unctx/dist/index.mjs)
browser.mjs?v=4edb748e:44 ssr User authenticated, proceeding to route
at middleware/auth.js
at Object.callAsync (node_modules/unctx/dist/index.mjs)
browser.mjs?v=4edb748e:52 ssr {success: false, message: 'Not connected'}
at setup (pages/dashboard/overview.vue)
auth.js:22 Client-side cookie: undefined
auth.js:25 Client: redirecting to login
60 replies
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai in my browser console when i try to log cookie, they logged this :
ssr eyJhbGciOiJIUzI1NiIsInR5cCI6Ikpsdfw9.eyJjbGllbnRJZCI6MjIsImlhdCI6MTczMTE2MjI0OCwiZXhwIjoxNzMxNTA3ODQ4fQ.o1YmNkihfVwWs3ZHBgDYmDKn61zUJlNc12SKshKgv9o
then is relogging but with undefined
and in my server console only : eyJhbGciOiJIUzI1NiIsInR5cCI6Ikpsdfw9.eyJjbGllbnRJZCI6MjIsImlhdCI6MTczMTE2MjI0OCwiZXhwIjoxNzMxNTA3ODQ4fQ.o1YmNkihfVwWs3ZHBgDYmDKn61zUJlNc12SKshKgv9o
60 replies