"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
const index_1 = __importDefault(require("../../config/index"));
const token = (id) => jsonwebtoken_1.default.sign({
    sub: id,
}, index_1.default.SECRET_KEY, { expiresIn: "1h", issuer: 'test-app' });
exports.default = token;
