Getting a 404 on useSession and unable to use Svelte Store
Hi there,
When making a request to: api/auth/use-session I am recieving a 404. This is made to a
Honojs
backend.
Then on the Svelte
side when I try use the store or value from the useSession method it is saying it is not a store
.
When making a request to get-session this resolves fine and a user is returned.
Code is something like below:

2 Replies
Is there a reason you would not want to use getsession() I’m hoping session data email wouldn’t change?
And is this how it should be done,
Because in my projects, I don’t use the auth at all, I just have the check in the page, layout server files, @CodingWithLuke
Well use-session is just a wrapped version of get session that is a store from my understanding.
This is not a Sveltekit project. Purely on clientside.