feat(web): add error boundaries, 404 page, loading states, and SEO metadata
- Add branded not-found.tsx with navigation links - Add global error.tsx boundary with retry and error digest display - Add root loading.tsx skeleton for route transitions - Expand root layout metadata: OpenGraph, Twitter cards, robots, viewport - Add sitemap.ts and robots.ts for SEO - Add search page and listing detail metadata via route layouts Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -126,7 +126,10 @@ export class MomoService implements IPaymentGateway {
|
||||
.update(rawSignature)
|
||||
.digest('hex');
|
||||
|
||||
const isValid = receivedSignature === expectedSignature;
|
||||
const isValid =
|
||||
receivedSignature.length > 0 &&
|
||||
receivedSignature.length === expectedSignature.length &&
|
||||
crypto.timingSafeEqual(Buffer.from(receivedSignature, 'hex'), Buffer.from(expectedSignature, 'hex'));
|
||||
const isSuccess = isValid && resultCode === '0';
|
||||
|
||||
this.logger.log(
|
||||
|
||||
Reference in New Issue
Block a user