From 2fdad60d42e2eb7869fcd19e8242bbb69c3dfd8c Mon Sep 17 00:00:00 2001 From: Moshe Tanzer Date: Fri, 2 Jan 2026 10:44:09 +0200 Subject: [PATCH] chore: use tabs as requested --- docs/content/docs/plugins/last-login-method.mdx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/content/docs/plugins/last-login-method.mdx b/docs/content/docs/plugins/last-login-method.mdx index ac8d9e8b36..9f908d91ad 100644 --- a/docs/content/docs/plugins/last-login-method.mdx +++ b/docs/content/docs/plugins/last-login-method.mdx @@ -60,11 +60,15 @@ const wasGoogle = authClient.isLastUsedLoginMethod("google") // Clear the stored method authClient.clearLastUsedLoginMethod() ``` - -In Nuxt applications with SSR enabled, calling `getLastUsedLoginMethod()` during server rendering may cause hydration mismatches. + + + + In Nuxt applications with SSR enabled, calling `getLastUsedLoginMethod()` during server rendering may cause hydration mismatches. To avoid layout shifts, read the value directly from the cookie using `useCookie('better-auth.last_used_login_method')` (the default cookie name). - + + ### UI Integration Example