@cocalc/server
Version:
CoCalc server functionality: functions used by either the hub and the next.js server
28 lines • 826 B
JavaScript
;
/*
* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
* License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isOAuth2 = exports.PassportTypesList = void 0;
// google, facebook, etc ... are not included, they're hardcoded
exports.PassportTypesList = [
"email",
"activedirectory",
"apple",
"azuread",
"gitlab2",
"oauth1",
"oauth2",
"oauth2next",
"oidc",
"orcid",
"saml",
// the 4 types for google, twitter, github and facebook are not included here – they're hardcoded special cases
];
// the OAuth2 strategies
function isOAuth2(type) {
return type === "oauth2" || type === "oauth2next";
}
exports.isOAuth2 = isOAuth2;
//# sourceMappingURL=types.js.map