stack/packages
Moritz Schneider 09f648e76c
add getUser overload (#544)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Add `getUser` overload to fetch `ServerUser` by ID in `server-app.ts`
and `server-app-impl.ts`.
> 
>   - **Functionality**:
> - Adds `getUser(id: string): Promise<ServerUser | null>` overload to
`getUser` in `server-app.ts` and `server-app-impl.ts`.
> - Allows fetching a `ServerUser` by ID, returning `null` if not found.
>   - **Implementation**:
> - Updates `getUser` method in `server-app-impl.ts` to handle string ID
input and call `getServerUserById`.
>   - **Interface**:
> - Updates `StackServerApp` type in `server-app.ts` to include new
`getUser` overload.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 071bd2a2e6. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
2025-03-14 19:27:15 +01:00
..
init-stack fix: --no-browser opening browser (#539) 2025-03-13 17:17:28 +01:00
js chore: update package versions 2025-03-12 19:03:12 -07:00
react chore: update package versions 2025-03-12 19:03:12 -07:00
stack chore: update package versions 2025-03-12 19:03:12 -07:00
stack-emails chore: update package versions 2025-03-12 19:03:12 -07:00
stack-sc chore: update package versions 2025-03-12 19:03:12 -07:00
stack-shared Support for extra request headers 2025-03-13 12:59:37 -07:00
stack-ui chore: update package versions 2025-03-12 19:03:12 -07:00
template add getUser overload (#544) 2025-03-14 19:27:15 +01:00