UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

20 lines 787 B
import ProviderCapabilities from "../../ProviderCapabilities"; import CustomAuthProvider from "./CustomAuthProvider"; var Fields; (function (Fields) { Fields["TOKEN"] = "token"; })(Fields || (Fields = {})); var CustomCredential = (function () { function CustomCredential(token, providerName) { var _a; if (providerName === void 0) { providerName = CustomAuthProvider.DEFAULT_NAME; } this.providerType = CustomAuthProvider.TYPE; this.providerCapabilities = new ProviderCapabilities(false); this.providerName = providerName; this.token = token; this.material = (_a = {}, _a[Fields.TOKEN] = this.token, _a); } return CustomCredential; }()); export default CustomCredential; //# sourceMappingURL=CustomCredential.js.map