"use strict";
/*
 *  This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/* api call to get the supported SSO strategies, and additional metadata (e.g.,
icons) that make them easier to work with.

Returns array Strategy[], where Strategy is as defined in

       @cocalc/server/auth/sso/get-strategies

or {error:message} if something goes wrong.
*/
const get_strategies_1 = __importDefault(require("@cocalc/server/auth/sso/get-strategies"));
async function handle(_req, res) {
    try {
        res.json(await (0, get_strategies_1.default)());
    }
    catch (err) {
        res.json({ error: err.message });
    }
}
exports.default = handle;
//# sourceMappingURL=sso-strategies.js.map