BUG #1 (critical): buildCallbackUrl() was returning https://skate-spots.org/amber-callback?event= but the app uses HashRouter, so React Router never matched /amber-callback. Amber would open the callback URL in a new tab, land on the homepage, and AmberCallbackPage would never render — login was silently broken. Fixed to: https://skate-spots.org/#/amber-callback?event= BUG #2: AmberCallbackHandler (global, in App.tsx) was competing with AmberCallbackPage on the /amber-callback route, causing a race condition where the global handler could consume the pubkey before the page component. Fixed by detecting the hash path and early-returning when on /amber-callback. BONUS: openAmberForLogin() now persists amber_return_path from the current hash path so AmberCallbackPage can navigate back to where the user was. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy> |
||
|---|---|---|
| .. | ||
| wallet | ||
| amber.ts | ||
| exchangeRateService.ts | ||
| genUserName.test.ts | ||
| genUserName.ts | ||
| lightningAddress.ts | ||
| nip06.test.ts | ||
| nip06.ts | ||
| offlineCache.ts | ||
| polyfills.ts | ||
| relatr.ts | ||
| sanitizeUrl.ts | ||
| skateboardRating.ts | ||
| skateTags.ts | ||
| types.ts | ||
| utils.ts | ||
| weather.ts | ||