Ihti.
Ihti.
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
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
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
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
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
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
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai resend code of all files
60 replies
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
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
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai resend me the code corrected
60 replies
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
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
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai don't working
60 replies
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai in my server side they logging cookie found! not redirecting but in client side redirecting to login
60 replies
NNuxt
Created by Ihti. on 11/9/2024 in #❓・help
middleware redirecting to authentification login but user is connected and cookie token is logged
@kapa.ai is don't working
60 replies