mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-18 11:32:15 -05:00
chore: use tabs as requested
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user