Returns the signed-in user, or null if no valid session exists.
Verifies the session token's signature via getClaims rather than trusting
the raw cookie (getSession). Wrapped in React's cache() so it executes
at most once per request regardless of how many callers invoke it.
Returns the signed-in user, or
nullif no valid session exists.Verifies the session token's signature via
getClaimsrather than trusting the raw cookie (getSession). Wrapped in React'scache()so it executes at most once per request regardless of how many callers invoke it.