Closed sheecegardezi closed 3 months ago
In the following code:
https://github.com/lucia-auth/examples/blob/a96c3c92a19fd64941255945f453c8705101f3c6/sveltekit/username-and-password/src/routes/login/%2Bpage.svelte#L10
needs to be:
<form method="post" use:enhance >
so that the form trigger the defauls action in defined in +page.server.ts
Fixed with v3
In the following code:
https://github.com/lucia-auth/examples/blob/a96c3c92a19fd64941255945f453c8705101f3c6/sveltekit/username-and-password/src/routes/login/%2Bpage.svelte#L10
needs to be:
<form method="post" use:enhance >
so that the form trigger the defauls action in defined in +page.server.ts