Overview

The Authentify It LifePass Studio API is a REST API. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.


Backend Error Handling

  • Centralized error handling via NestJS exception filters.

  • Critical errors are logged and returned to clients in a structured manner to prevent sensitive information leaks.

  • Client errors are handled with clear, user-friendly messages.


Logging

  • Uses NestJS built-in logger to track critical events and errors.

  • Logs track user actions and incidents.

  • Logs can be centralized into an external monitoring system for detailed audits and analysis.


Monitoring

  • DigitalOcean Insights: CPU, RAM, disk, and network usage monitoring

  • HTTP error monitoring (500, 400, etc.)

  • Alerts when the server exceeds defined thresholds

We also use Sentry to notify us of critical or unhandled errors. Sentry is linked to both frontend and backend, and alerts are sent via Slack when an unforeseen error is triggered.


Database

NoSQL Database: MongoDB

  • LifePass App uses the same database & schemas

  • Backups every 6h

  • NFC Chip ID is encoded before being saved in the database


Cache Management

  • Redis

  • Cloudflare


External SDKs

  • Fireblocks

  • Firebase

  • Twilio

  • Sendgrid

  • Sentry

  • Metaplex

Last updated