Where in the code is the User Session written to the database? #1497
Replies: 1 comment
-
It's the adapter that's make the db query - |
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,
I'm trying to debug an error and I can't find where the user_session table is written to the db. Is it in one of the lucia functions such as 'lucia.createSession'? I don't understand why the query to create the auth_user is exposed, but not the session.
Framework: Sveltekit
Lucia: Lucia V3
Login: GitHub
DB Adapter: Postgres | Neon
When a user logs in for the first time everything works great. If they logout, and then try to login again, I'm catching an error in the callback:
Cheers,
Matt
Beta Was this translation helpful? Give feedback.
All reactions