You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the `client-only` load strategy, the user session can still be manually fetched on the server side by calling `fetch` from the `useUserSession` composable.
611
611
612
+
### Disable session loading
613
+
614
+
You may also choose to disable session loading entirely, with the `loadStrategy` option in your `nuxt.config.ts`:
615
+
616
+
```ts
617
+
exportdefaultdefineNuxtConfig({
618
+
auth: {
619
+
loadStrategy: 'none'
620
+
}
621
+
})
622
+
```
623
+
624
+
When using the `none` load strategy, the user session can still be manually fetched by calling `useUserSession().fetch()`.
625
+
612
626
### `<AuthState>` component
613
627
614
628
You can use the `<AuthState>` component to safely display auth-related data in your components without worrying about the rendering mode.
0 commit comments