Omicrxn
BABetter Auth
•Created by Omicrxn on 4/17/2025 in #help
Unclear on how to handle session and cookies in sveltekit
I've followed the sveltekit guide from better auth website However i think it is unclear on how to do sveltekit auth on server side, on the example you do so by doing it on the client but normally you would do a login +page.svelte and then a +page.server.svelte and there you would call the auth.api.signInSocial (or email). Example:
continuing below due to discord's character limit
8 replies
BABetter Auth
•Created by Omicrxn on 4/16/2025 in #help
Better Auth + Tauri + Sveltekit
I have successfully implemented better auth into a sveltekit + tauri app, but once logged if i refresh the session is lost and it is null on the hooks.server.ts (where i do auth guards too). Has anyone succesfully used better auth in tauri?
1 replies