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

Open
opened 2026-04-17 23:24:45 -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: main ← 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 tip to the last-login-method docs to avoid hydration mismatches and layout shifts. The guidance is shown in a Nuxt tab and recommends reading useCookie('better-auth.last_used_login_method') during SSR instead of calling getLastUsedLoginMethod().

Written for commit 2fdad60d42. 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:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`48c1d78`](https://github.com/better-auth/better-auth/commit/48c1d78f23f290cee1e124bceb492d69d2a32272) nuxt documentation - [`2fdad60`](https://github.com/better-auth/better-auth/commit/2fdad60d42e2eb7869fcd19e8242bbb69c3dfd8c) 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 tip to the last-login-method docs to avoid hydration mismatches and layout shifts. The guidance is shown in a Nuxt tab and recommends reading `useCookie('better-auth.last_used_login_method')` during SSR instead of calling `getLastUsedLoginMethod()`. <sup>Written for commit 2fdad60d42e2eb7869fcd19e8242bbb69c3dfd8c. 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-04-17 23:24:45 -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#32662