Replies: 1 comment
-
I apologize for cluttering the discussions section. My bad, right after I had posted this question, I found the respective code piece:
|
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
-
I have problems understanding how a server persistent session receives the id of the newly created session record.
This is the documentation I am referring to:
https://start.solidjs.com/api/createSessionStorage
In particular the paragraph "Creating a SessionStorage" with this function:
async createData(data, expires) {
return db.sessions.create({ data: { ...data, expires } })
},
I am trying to figure out what db.sessions.create() is supposed to return. As far as I can guess, it's either the id of the newly session record or the session record containing the session id i.e. something like {id: 1, ...}.
Can anybody help me with this?
Beta Was this translation helpful? Give feedback.
All reactions