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