API Reference
Auth
Returns profiles.role + caller team_members + b2b_members + family_members context (each null when the caller has no membership in that domain). Replaces the three auth.uid()-bound RPCs.
Authorization
better-auth.session_token better-auth.session_token<token>
In: cookie
Response Body
application/json
curl -X GET "https://example.com/api/v1/auth/middleware-context"{}