Skip to content

Fix client-instance split and absolute-URL SSR fetch in useAuthSession - #42

Draft
ebulgakov wants to merge 2 commits into
mainfrom
feature/update-footer-header
Draft

Fix client-instance split and absolute-URL SSR fetch in useAuthSession#42
ebulgakov wants to merge 2 commits into
mainfrom
feature/update-footer-header

Conversation

@ebulgakov

Copy link
Copy Markdown
Owner
  • useAuthSession now returns its authClient so use-auth-buttons.ts signs out through the same client instance used for the session read, instead of a second independent one
  • Strip the origin from the session URL before calling useFetch, so SSR resolves it via Nitro's internal handler rather than a self-fetch over the network, which serverless targets can't reliably serve mid-request

- useAuthSession now returns its authClient so use-auth-buttons.ts signs out through the same client instance used for the session read, instead of a second independent one
- Strip the origin from the session URL before calling useFetch, so SSR resolves it via Nitro's internal handler rather than a self-fetch over the network, which serverless targets can't reliably serve mid-request

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
linkfolio Ready Ready Preview Aug 3, 2026 5:39pm

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b0c7bfe7-7612-43c4-bf30-136530771b0c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant