serverUser and currentServerUser margins updated

This commit is contained in:
Madison 2025-07-08 16:50:38 -05:00
parent fa0c582e2d
commit 24070449fc

View File

@ -1171,6 +1171,10 @@ You can call `useUser()` or `stackServerApp.getUser()` to get the `CurrentUser`
</MethodLayout>
</CollapsibleTypesSection>
---
<div className="mt-16"></div>
# `ServerUser`
The `ServerUser` object contains most `CurrentUser` properties and methods with the exception of those that require an active session (`getAuthJson` and `signOut`). It also contains some additional functions that require [server-level permissions](../../concepts/stack-app.mdx#client-vs-server).
@ -1556,6 +1560,10 @@ The `ServerUser` object contains most `CurrentUser` properties and methods with
</CollapsibleTypesSection>
{/* END_PLATFORM */}
---
<div className="mt-16"></div>
# `CurrentServerUser`
The `CurrentServerUser` object combines all the properties and methods of both `CurrentUser` and `ServerUser`. You can obtain a `CurrentServerUser` by calling `stackServerApp.getUser()` on the server side.