Whenever I try to get the session on the client side, I get this error:
[404] GET /api/auth/get-session
[404] GET /api/auth/get-session
.
I am able to interact with the server auth and can create accounts.
I have tried adding
trustedDomains
trustedDomains
in the server auth then added the
baseURL
baseURL
into the client auth and I no longer get the same issue (commented out), instead I get
Cross-Origin Request Blocked
Cross-Origin Request Blocked
errors.
Solution
After looking it into, I realised the issue was that I was running my server on another machine. If you have a similar workflow, you have to set the url to the local IP of the machine that is running the server. Make sure to add the trustedDomains and baseURL parameters