"use strict";
/* api call to see whether or not a token is required for creating an account. */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const get_requires_token_1 = __importDefault(require("@cocalc/server/auth/tokens/get-requires-token"));
async function handle(_req, res) {
    try {
        res.json(await (0, get_requires_token_1.default)());
    }
    catch (err) {
        res.json({ error: err.message });
    }
}
exports.default = handle;
//# sourceMappingURL=requires-token.js.map