Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always return 200 for session endpoint #130

Merged
merged 2 commits into from
Jul 30, 2024
Merged

fix: always return 200 for session endpoint #130

merged 2 commits into from
Jul 30, 2024

Conversation

atinux
Copy link
Owner

@atinux atinux commented Jul 30, 2024

Resolves #115

@atinux atinux merged commit 26f4aa0 into main Jul 30, 2024
3 checks passed
@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
2 participants