chore: use tabs as requested

This commit is contained in:
Moshe Tanzer
2026-04-05 18:54:20 +01:00
committed by Gustavo Valverde
parent 48c1d78f23
commit 2fdad60d42
@@ -60,11 +60,15 @@ const wasGoogle = authClient.isLastUsedLoginMethod("google")
// Clear the stored method
authClient.clearLastUsedLoginMethod()
```
<Callout type="info">
In Nuxt applications with SSR enabled, calling `getLastUsedLoginMethod()` during server rendering may cause hydration mismatches.
<Tabs items={[ "nuxt"
]} defaultValue="nuxt">
<Tab value="nuxt">
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).
</Callout>
</Tab>
</Tabs>
### UI Integration Example