/api/auth/get-session (auxiliary)
Source-derived auxiliary endpoint contract, authentication, request validation, responses, and errors.
This is the auxiliary service route. Its origin and authentication are described in Platform API overview and Authentication. A path shared by another service is a different endpoint.
| Property | Contract |
|---|---|
| Methods | GET |
| Path | /api/auth/get-session |
| Path parameters | None |
| Query parameters read in route | None read directly; schema validation below may define additional fields |
| Headers read in route | No additional direct header reads; authentication helpers may read credentials |
Authentication and access
Dashboard session cookie through @repo/auth/server. Some auth-summary routes can redirect to sign-in; inspect the status branches below.
Method behavior
The handler excerpt preserves field validation, response envelopes, cookie changes, and exception branches. Values returned by service helpers retain their named response type above; for passthrough routes, the upstream response is authoritative.
GET
GET = async () => {
const h = await headers();
const session = await authCore.api.getSession({ headers: h });
return Response.json(session ?? null);
}Source: minds-ui/apps/api/app/api/auth/get-session/route.ts:4.
Response and error branches
Literal HTTP statuses in the route: delegated or computed. Shared management error classes are defined in Errors and responses.
Response.json(session ?? null)Source: minds-ui/apps/api/app/api/auth/get-session/route.ts:7.
Evidence
Generated from the local source snapshot on 2026-09-12. This page documents implemented code and does not certify a deployed service, permissions configuration, or successful provider operation.
Source file: minds-ui/apps/api/app/api/auth/get-session/route.ts. SHA-256: 4630d6d0a7c16270105a17ca0207ee0283bb3f4a76cc17855bd4bfa2bc292aa1.