Skip to content

Commit

Permalink
fix(hooks): 🐛 Removed duplicate refresh hook call
Browse files Browse the repository at this point in the history
  • Loading branch information
itpropro committed Jan 11, 2024
1 parent ca2485d commit 0bfa7a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/runtime/server/api/refresh.post.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { eventHandler } from 'h3'
import { refreshUserSession, sessionHooks, requireUserSession } from '../utils/session'
import { refreshUserSession, requireUserSession } from '../utils/session'

export default eventHandler(async (event) => {
const session = await requireUserSession(event)

await sessionHooks.callHookParallel('refresh', session, event)
await requireUserSession(event)
await refreshUserSession(event)

return { refreshed: true }
Expand Down

0 comments on commit 0bfa7a3

Please sign in to comment.