Skip to content

Conversation

@phoenix-ru
Copy link
Collaborator

πŸ”— Linked issue

Closes #922

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR makes sure that proxyCookies option is used for getSession and signIn calls since both of them are reachable from the middleware and could therefore be run on server. Nuxt will not automatically pass client headers to the API call and also backwards. The PR extends on the foundation laid in #1041

Assets


await getSessionWithNuxt(nuxt)

await nextTick(getSession)

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 27, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@sidebase/nuxt-auth@1067

commit: 7d00d3e

@phoenix-ru phoenix-ru merged commit ed9afad into main Nov 27, 2025
7 checks passed
@phoenix-ru phoenix-ru deleted the fix/922-proxy-cookies-in-signIn-getSession-calls branch November 27, 2025 16:34
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.

Login callback error: State cookie was missing.

3 participants