ActiveCustomer returning null after logging in #3331
Replies: 1 comment
-
Never mind! Just had to login on the client side rather than the server side - I was carrying along some flawed logic from a previous project. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I'm attempting to query for an active customer after logging in - however, I'm only receiving nulls, and I'm not really sure why.
I'm using SvelteKit as the storefront. The storefront is running on localhost:5173 and Vendure is running on localhost:3000.
I'm using urql to make requests.
I've got 'fetchOptions.credentials' set to 'include' on my storefront, and I'm seeing the 'session' and 'session.sig' cookies set on the request cookies in Firefox. I'm also seeing 'sec-fetch-site' set to 'same-site', so I'm assuming this isn't due to samesite cookie tomfoolery.
'authOptions.tokenMethod' is set to "['cookie']" in my vendure-config.ts.
If I query the 'sessions' table in the Vendure PSQL DB, I see sessions actively being created, so I'm assuming there aren't any dramies there.
Any direction or things to check would be greatly appreciated! Thank you in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions