Skip to content

Commit 2bfc03b

Browse files
committed
Fix the openInPopup type signature in the API table to include parameter types.
1 parent ce832ee commit 2bfc03b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/content/2.usage/1.session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const { loggedIn, user, session, ready, fetch, clear, openInPopup } = useUserSes
3636
| `session` | `Ref<UserSession \| null>` | Full session object |
3737
| `fetch()` | `() => Promise<void>` | Refetch session from server |
3838
| `clear()` | `() => Promise<void>` | Clear session and remove cookie |
39-
| `openInPopup(route, size?)` | `() => void` | Open OAuth route in popup, auto-closes on success |
39+
| `openInPopup(route, size?)` | `(route: string, size?: { width?: number, height?: number }) => void` | Open OAuth route in popup, auto-closes on success |
4040

4141
> **Important:** Nuxt Auth Utils uses `/api/_auth/session` for session management. Make sure your API middleware does not interfere with this path.
4242

0 commit comments

Comments
 (0)