diff options
author | Pawel Zelawski <pawel.zelawski@outlook.com> | 2025-04-10 11:14:05 +0200 |
---|---|---|
committer | Pawel Zelawski <pawel.zelawski@outlook.com> | 2025-04-10 11:14:05 +0200 |
commit | e29a1b9a652fe254d13afef7f5c7a3d7a64b68cc (patch) | |
tree | 2d2719df200082b8fedfcbf58559c2d7efb1a830 /.eslintrc.cjs | |
parent | c852aa92f84d0c18b1bd7361163498a542461d45 (diff) |
feat: link local digiid-ts library and integrate into backend
- Added local `digiid-ts` library as a file dependency in `package.json`.
- Moved runtime dependencies (react, express, etc.) to `dependencies` section.
- Updated `src/server/main.ts`:
- Imported `generateDigiIDUri`, `verifyDigiIDCallback`, and `DigiIDError` from `digiid-ts`.
- Replaced placeholder URI generation with `generateDigiIDUri`.
- Replaced placeholder callback verification with `verifyDigiIDCallback`.
- Refactored `/api/digiid/callback` handler to use `try...catch` for verification, handling thrown `DigiIDError` on failure as per library design.
- Ensured session state is updated and 200 OK response sent in `finally` block.
- Cleaned up related placeholder comments in `src/server/main.ts`.
- (Requires `npm install` to be run after checkout)
Diffstat (limited to '.eslintrc.cjs')
0 files changed, 0 insertions, 0 deletions