Function: getCurrentAdmin()
getCurrentAdmin():
Promise<CurrentAdmin|null>
Defined in: src/server/auth/guards.ts:20
Resolve the authenticated admin from the request session, or null. Reads through the user-scoped (RLS) client, so it only ever returns the caller's own profile. Server actions and Server Components call this; the route gate in middleware is the first line of defense and this is the re-verification at the point of use (ADR-0004).
Returns
Promise<CurrentAdmin | null>