💾 Archived View for iich.space › src › middleware › withCertificate.ts captured on 2022-03-01 at 16:00:00.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

import { Status } from '@/gemini';
import { Handler } from '@/mission-control';

const withCertificate: Handler = (req, res) => {
  if (req.fingerprint === null) {
    res.sendStatus(Status.CLIENT_CERTIFICATE_REQUIRED);
    res.end();
  }
};

export default withCertificate;