[PR #7077] docs(last-login-method): add tips about hydration mismatch & layout shift #7061

Open
opened 2026-03-13 13:22:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7077
Author: @moshetanzer
Created: 12/31/2025
Status: 🔄 Open

Base: canary ← Head: patch-1


📝 Commits (2)

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 docs/content/docs/plugins/last-login-method.mdx (+9 -0)

📄 Description

Added note about SSR and hydration mismatches in Nuxt applications.


Summary by cubic

Add a Nuxt SSR note to the last-login-method docs to prevent hydration mismatches and layout shifts. During SSR, read the cookie via useCookie('better-auth.last_used_login_method') instead of calling getLastUsedLoginMethod().

Written for commit 9f66eab16b69a1dad45363779ec76c8c7f83edfc. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7077 **Author:** [@moshetanzer](https://github.com/moshetanzer) **Created:** 12/31/2025 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`9849eb8`](https://github.com/better-auth/better-auth/commit/9849eb8debb31f4ee99ed46515f94ae86e221d33) nuxt documentation - [`9f66eab`](https://github.com/better-auth/better-auth/commit/9f66eab16b69a1dad45363779ec76c8c7f83edfc) chore: use tabs as requested ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/last-login-method.mdx` (+9 -0) </details> ### 📄 Description Added note about SSR and hydration mismatches in Nuxt applications. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add a Nuxt SSR note to the last-login-method docs to prevent hydration mismatches and layout shifts. During SSR, read the cookie via useCookie('better-auth.last_used_login_method') instead of calling getLastUsedLoginMethod(). <sup>Written for commit 9f66eab16b69a1dad45363779ec76c8c7f83edfc. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:22:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7061