Hello, I need help with my directus user authentication with nuxt… I am using SDK
return createDirectus(base).with(rest()).with(authentication('json'))
Then in my server route I am calling
const refreshToken = getCookie(event, 'refresh_token');
const response = await directus.request(refresh('json', refreshToken))
But directus is giving me:
"Invalid user credentials."
when calling this. Any ideas why? Could this be because of HTTP Only sameSite option? (I am storing both access and refresh tokens in HttpOnly cookies)
Have you verified that the refresh token from
– rijkvanzantengetCookieexists?Can you please tell me how do I check this? I mean it exists in browser, i dont know if the refresh token exists in directus. I am using cloud version
– Jan_Krnac