Skip to content

Commit 69eaf42

Browse files
authored
feat: clearUserSession takes config arg as well
Related to #204
1 parent e039625 commit 69eaf42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/server/utils/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export async function replaceUserSession(event: H3Event, data: UserSession, conf
6161
* @param event The Request (h3) event
6262
* @returns true if the session was cleared
6363
*/
64-
export async function clearUserSession(event: H3Event) {
65-
const session = await _useSession(event)
64+
export async function clearUserSession(event: H3Event, config?: Partial<SessionConfig>) {
65+
const session = await _useSession(event, config)
6666

6767
await sessionHooks.callHookParallel('clear', session.data, event)
6868
await session.clear()

0 commit comments

Comments
 (0)