You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,15 +187,15 @@ Don't forget to re-login after verifying the email verification code.
187
187
Registers a new user in the database if they don’t already exist. It handles OAuth authentication by registering the OAuth account, creating a session, and linking the user’s details.
188
188
-**Returns**: A tuple containing the user ID and the created session details.
189
189
190
-
##### `getUser(userId: string)`
190
+
##### `getUser(id: string)`
191
191
192
192
Fetches a user by its user ID.
193
193
194
-
##### `getSession(sessionId: string)`
194
+
##### `getSession(id: string)`
195
195
196
196
Fetches a session by its session ID.
197
197
198
-
##### `deleteSession(sessionId: string)`
198
+
##### `deleteSession(id: string)`
199
199
200
200
Deletes a session by its session ID.
201
201
@@ -262,6 +262,12 @@ Sets custom methods for hashing and verifying passwords.
262
262
263
263
Sets custom method for reset password token hashing.
0 commit comments