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
But after the response from the register endpoint, i get a 405 from api/_auth/session. If i try to call the endpoint with curl i get the same response (maybe is intended idk).
What i am using
Using bun and vscode ssh remote connection. The project is not inside a container!
Using the latest verision of the package
I resolve by copy paste this code from the playground into server/plugins/session.ts:
exportdefaultdefineNitroPlugin(()=>{sessionHooks.hook('fetch',async(session)=>{// Extend User Session// Or throw createError({ ... }) if session is invalidsession.extended={fromHooks: true,}})sessionHooks.hook('clear',async(_session)=>{// Log that user logged outconsole.log('User logged out')})})
Description
I am creating a simple page like so:
Auth page
register
endpointOverride Types
But after the response from the
register
endpoint, i get a 405 fromapi/_auth/session
. If i try to call the endpoint withcurl
i get the same response (maybe is intended idk).What i am using
Using bun and vscode ssh remote connection. The project is not inside a container!
Using the latest verision of the package
The text was updated successfully, but these errors were encountered: