mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
serverUser and currentServerUser margins updated
This commit is contained in:
parent
fa0c582e2d
commit
24070449fc
8
docs/templates/sdk/types/user.mdx
vendored
8
docs/templates/sdk/types/user.mdx
vendored
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user