Matthew Raymer
b79cccc591
refactor: Improve QR code scanning and JWT handling
...
- Enhanced JWT extraction and validation in getContactJwtFromJwtUrl
- Added robust error handling in decodeEndorserJwt with fallback manual decoding
- Improved QR code scanning with better type safety and error handling
- Refactored ContactQRScanShowView component for better maintainability
- Added comprehensive logging throughout the scanning process
- Improved cleanup handling for camera and listeners
- Added proper TypeScript interfaces for scan results
- Enhanced error messages for better user feedback
Security:
- Added validation for JWT format and required fields
- Improved error handling for malformed JWTs
- Added input validation for QR code URLs
- Redacted sensitive data in logs
BREAKING CHANGE: JWT handling now supports multiple URL patterns and has stricter validation
2025-04-16 11:40:39 +00:00
Matthew Raymer
e0aded04b4
refactor: Replace console logging with logger utility
...
- Add logger import across multiple view components
- Replace console.error/warn/log with logger methods
- Update error handling to use structured logging
- Improve type safety for error objects
- Add crypto-browserify polyfill for browser environment
The changes improve logging by:
1. Using consistent logging interface
2. Adding structured error logging
3. Improving error type safety
4. Centralizing logging configuration
5. Fixing browser compatibility issues
Affected files:
- Multiple view components
- vite.config.ts
- Build configuration
2025-03-11 09:35:55 +00:00
Matthew Raymer
43983bd993
(chore): merge mostly pathway changes
2025-02-06 13:34:48 +00:00
64830eeb05
fix linting (and change a little wording in onboarding page)
2025-02-03 16:36:13 -07:00
2a23587c3b
make screen where user can create a group onboarding meeting
2025-02-02 17:06:51 -07:00
Matthew Raymer
94ee9e24ea
Merge fixes
2025-01-11 12:45:43 +00:00
6514f52b92
change all copied contact URLs to contact-import, and handle multiples & singles separately
2025-01-09 20:10:00 -07:00
07c4e58e87
add sanity checks for importing bulk contacts, eg. when there is a truncated link
2025-01-07 20:56:39 -07:00
702e44872f
switch so personal contact JWT is link to this server (not endorser.ch), make empty-did URL show user's info
2025-01-06 08:52:10 -07:00
Matthew Raymer
be8ba12df6
Refatored vite.config to be a bit more streamlined before adding alternate build options. This did end up requiring me to remove @ from imports for some reason. Tests came out fine.
2025-01-05 08:38:15 +00:00
b2ebc2992b
cache the passkey JWANT access token for multiple signatures
2024-07-19 12:44:54 -06:00
f6338c05ee
move low-level DID-related create & decode into separate folder ( #120 )
...
Co-authored-by: Trent Larson <trent@trentlarson.com >
Reviewed-on: trent_larson/crowd-funder-for-time-pwa#120
Co-authored-by: trentlarson <trent@trentlarson.com >
Co-committed-by: trentlarson <trent@trentlarson.com >
2024-07-13 13:24:54 -04:00
7cb9e2aa52
replace remaining didJwt.createJwt calls with one that checks for did:peer
2024-07-11 19:35:17 -06:00
145a1da37e
linting cleanup
2024-07-09 19:42:55 -06:00
bce003e508
change accessToken to take a DID
2024-07-09 19:20:05 -06:00
45f0a14661
add expiration inside JWANT & refactor getHeaders to move toward supporting did:peer
2024-07-09 17:56:48 -06:00
4cb434fd5d
passkey test ( #116 )
...
Co-authored-by: Trent Larson <trent@trentlarson.com >
Reviewed-on: trent_larson/crowd-funder-for-time-pwa#116
Co-authored-by: trentlarson <trent@trentlarson.com >
Co-committed-by: trentlarson <trent@trentlarson.com >
2024-06-24 22:21:24 -04:00
ef5f81932d
Initial stab at vitejs update
2024-03-24 11:18:29 -06:00
934664b9c9
add the hashed-next-key to the contact data, shown & stored
2024-01-03 17:44:41 -07:00
ce06e8f0fa
update derivation path to the one for time
2023-10-31 19:58:07 -06:00
94d9c425ad
add QR scanner for adding a contact
2023-09-07 18:59:19 -06:00
0c05505c46
allow use of custom derivation path, and add way to increment derivation for existing
2023-08-20 19:46:12 -06:00
Matthew Raymer
754bced2a9
Considerable cleanup. I think I also found the issue from the other day with values not loading from settings.
2023-07-06 18:12:21 +08:00
cfeabf05a4
refactor DB organization (prepping for more tables)
2023-03-18 17:04:14 -06:00
2a7c858662
refactor: use our own SimpleSigner since library version is deprecated
2023-01-09 19:08:41 -07:00
Matthew Aaron Raymer
ba85663048
Linted
2023-01-07 13:19:04 +08:00
9d566fa977
fix: use SimpleSigner directly from did-jwt
2023-01-06 19:25:53 -07:00
Matthew Aaron Raymer
150b35c4c7
Update with our own SimpleSigner
2023-01-06 17:30:41 +08:00
Matthew Aaron Raymer
f858a4d29a
Linted
2023-01-04 17:09:11 +08:00
Matthew Aaron Raymer
f021fcdb1c
New Project
2023-01-04 17:05:08 +08:00
Matthew Aaron Raymer
6325bcbe35
Work in progress
2023-01-03 17:28:23 +08:00
Matthew Aaron Raymer
0ee35e4946
Added variation of accessToken method carried over from endorser-mobile
2023-01-03 12:35:41 +08:00
Matthew Aaron Raymer
b58c0ce820
First iteration of account creation. More refactoring to come
2022-12-09 18:23:53 +08:00