extractUserFromHeaders
extractUserFromHeaders(
headers,context):Promise<User|undefined>
Extract user from raw headers using whichever auth provider is configured. Works with both JWT and Better Auth, mirroring authenticateMiddleware behavior.
Parameters
headers
Record<string, string | string[] | undefined>
context
Returns
Promise<User | undefined>