-
Notifications
You must be signed in to change notification settings - Fork 25
Cookie is not allowed #49
Comments
Are you trying to instantiate the nhost-js-sdk in the nhost custom api container? Are you self hosting HBP (is that what you mean with docker)? And which version of nhost-js-sdk? |
I'm not familiar with the nhost custom api container, as in this container? I'm running this image.
Yes, testing locally.
Latest version of nhost-js-sdk – 2.3.4. |
I ran into this problem recently and got it fixed by upgrading to v3.0.0 nhost-js-sdk AND HBP v.2.2.4. Try it and maybe it works for you too? |
Thanks for the update @Svarto. I'm still getting the same response after updating to It doesn't seem to be related to this library as I had a quick look here at it appears that there something odd going on with validation. See output:
I also tried updating to the latest version of Joi (current package has been depreciated), with no luck. |
@joshhopkins if you explicitly set const nhostClient = createClient({
baseURL: 'https://backend-url.nhost.app',
useCookies: false, //defaults to false
}) |
@joshhopkins Can you just double-check your HBP version? Do you self-host or use Nhost? If you're self-hosting and using something like I tried this exact setup and everything is working for me. |
I can confirm upgrading my docker version from |
I'll close this for now since upgrading seems to fix the issue. |
When running the latest docker image, with default config
COOKIE_SECURE, COOKIE_SAME_SITE
, I get the following response when callingauth.login(email, password)
.Have tried both
use_cookies: false
and without the param:Anything obvious I may be missing?
The text was updated successfully, but these errors were encountered: