Repository navigation
feat(client): add Verified ID status hook and API client - #206
Open
Philivanei wants to merge 2 commits into
Open
Philivanei wants to merge 2 commits into
Philivanei wants to merge 2 commits into
Conversation
Add the useVerifiedIdStatus hook, the status helpers, the API call for GET /api/me/verifiedId/status and the related types. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🌈 zizmor scan results✅ zizmor found no issues in this repository's GitHub Actions. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The verification-status hook can schedule retries after unmount when an in-flight status request settles, allowing authenticated requests to continue after cleanup.
1 open issue
What changed in this PR
Adds the client data layer for recent Verified ID checks, preparing for the UI enforcement described in #198 without changing rendered behavior.
Changes:
- Adds an authenticated status API call and related response and UI types.
- Introduces a status hook with polling, server-clock-based expiry, and post-verification retries.
- Adds timestamp parsing, validity checking, and display-formatting helpers.
| File | Description |
|---|---|
src/MyWorkID.Client/src/types.ts |
Defines verification status types and future UI integration props. |
src/MyWorkID.Client/src/services/api-service.ts |
Adds the Verified ID status API request. |
src/MyWorkID.Client/src/lib/verified-id-status.ts |
Adds timestamp, duration, and validity helpers. |
src/MyWorkID.Client/src/hooks/use-verified-id-status.ts |
Manages status loading, refreshes, retries, and expiry. |
Review effort: Balanced
StefanH114
approved these changes
Nov 9, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Third layer of the split of #198.
useVerifiedIdStatushook and its helpers. It loads the status, derives the validity window from server time and retries after a verification until the fresh timestamp is visible.getVerifiedIdStatusAPI call and the related types.Why
The UI layer above needs the status as data. Nothing is rendered differently yet.
Testing
tsc --noEmitpasses.🤖 Generated with Claude Code