mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-09-30 08:03:20 +00:00
* feat(api): stand up Hono Drizzle foundation with auth and Redocly * fix(api): bump drizzle-orm and hono node-server past audit highs * fix(api): harden auth upsert and Cognito token verification
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
get:
|
|
tags:
|
|
- Session
|
|
summary: Return the authenticated caller profile
|
|
description: Upserts the caller into users on first request and returns the stored profile used by the SPA session smoke path.
|
|
operationId: get-api-me
|
|
security:
|
|
- bearerAuth: []
|
|
responses:
|
|
"200":
|
|
description: Authenticated user profile.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yaml#/MeResponse
|
|
example:
|
|
id: 11111111-1111-4111-8111-111111111111
|
|
email: admin@seahavenind.com
|
|
name: Dev Admin
|
|
role: admin
|
|
"401":
|
|
description: Missing or invalid bearer token.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yaml#/Error
|
|
example:
|
|
error: Missing or invalid Authorization header.
|
|
"409":
|
|
description: Email is already linked to a different Cognito subject.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yaml#/Error
|
|
example:
|
|
error: Email admin@seahavenind.com is already linked to a different identity.
|
|
"404":
|
|
description: Not found.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yaml#/Error
|
|
example:
|
|
error: Not found.
|