Service Layer medium complexity backend
0
Dependencies
0
Dependents
3
Entities
0
Integrations

Description

Backend service responsible for issuing, validating, and revoking peer mentor certificates. Generates signed certificate records in the certifications table upon confirmed course completion, applies organization-configurable validity periods, and coordinates with the PDF renderer to produce shareable artifacts.

Feature: Digital Peer Mentor Certificate

certificate-service

Responsibilities

  • Issue signed certificate record after course completion confirmation
  • Apply organization-configurable validity period to derive expiry date
  • Validate certificate status for access-control checks
  • Revoke or update certificates on role or enrollment change
  • Trigger PDF/image rendering for share export

Interfaces

issueCertificate(userId, courseId, organizationId): Certificate
getCertificate(userId): Certificate | null
revokeCertificate(certificationId): void
isCertificateValid(userId): boolean
getExpiryStatus(userId): ExpiryStatus

Related Data Entities (3)

Data entities managed by this component