"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var jwt = require("jsonwebtoken");
exports.createApp = function (options) {
    return function () {
        var payload = {
            exp: Math.floor(Date.now() / 1000) + 60,
            iat: Math.floor(Date.now() / 1000),
            iss: options.id // GitHub App ID
        };
        // Sign with RSA SHA256
        return jwt.sign(payload, options.cert, { algorithm: 'RS256' });
    };
};
//# sourceMappingURL=github-app.js.map