Add identity endpoint

This commit is contained in:
Jon Staab
2026-03-26 16:10:24 -07:00
parent 9da5e027a7
commit a2f9ca9688
9 changed files with 129 additions and 38 deletions
+6
View File
@@ -16,6 +16,12 @@ The api allows the frontend to access the database. Most endpoints are authentic
- Uses `makeAuth` to obtain a NIP 98 authorization header.
- Calls the backend api and returns the decoded json or throws an `ApiError`.
## `function getIdentity()`
- Calls `GET /identity`
- Requires authentication
- Returns `{ pubkey, is_admin, is_tenant }` for the authorized user
## Plan methods
## `function listPlans()`