Skip to content

Commit

Permalink
fix(imports): 🐛 Added missing h3 import for logout handler
Browse files Browse the repository at this point in the history
  • Loading branch information
itpropro committed Dec 27, 2023
1 parent 0b0b5c6 commit d32260d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/server/handler/logout.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { sendRedirect } from 'h3'

export default logoutEventHandler({
async onSuccess(event) {
return sendRedirect(event, '/')
return sendRedirect(event, '/', 302)
}
})
2 changes: 1 addition & 1 deletion src/runtime/server/lib/oidc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { H3Error, useSession, getRequestHeader, eventHandler, createError, getQuery, sendRedirect, readBody } from 'h3'
import { H3Error, useSession, getRequestHeader, eventHandler, createError, getQuery, sendRedirect, readBody, getRequestURL } from 'h3'
import { withQuery, parseURL, normalizeURL } from 'ufo'
import { ofetch } from 'ofetch'
// @ts-expect-error - Missing types for nitro exports in Nuxt (useStorage)
Expand Down

0 comments on commit d32260d

Please sign in to comment.