Skip to content

Conversation

@atinux
Copy link
Owner

@atinux atinux commented Jul 30, 2024

Resolves #115

@atinux atinux merged commit 26f4aa0 into main Jul 30, 2024
@atinux atinux deleted the fix-session branch July 30, 2024 10:26
Comment on lines +8 to +10
if (session.user) {
await sessionHooks.callHookParallel('fetch', session as UserSessionRequired, event)
}
Copy link

@katlyn katlyn Sep 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for requiring that user being defined on the session is required before running the fetch hook? This seems to be a breaking change, compared to the previous implementation. For my use case i would like the user property to be populated dynamically by a session hook based on other information in the session, but this change prevents that use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nuxt-auth-utils throws Unauthorized (/api/_auth/session) on any 404 page

3 participants