From 24070449fc2a1e6b592a0ef7b223dd2e44aacca2 Mon Sep 17 00:00:00 2001 From: Madison Date: Tue, 8 Jul 2025 16:50:38 -0500 Subject: [PATCH] serverUser and currentServerUser margins updated --- docs/templates/sdk/types/user.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/templates/sdk/types/user.mdx b/docs/templates/sdk/types/user.mdx index cc6c05fae..0889748aa 100644 --- a/docs/templates/sdk/types/user.mdx +++ b/docs/templates/sdk/types/user.mdx @@ -1171,6 +1171,10 @@ You can call `useUser()` or `stackServerApp.getUser()` to get the `CurrentUser` +--- + +
+ # `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 {/* END_PLATFORM */} +--- + +
+ # `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.