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)

33 lines 1.18 kB
var StitchAdminUser = (function () { function StitchAdminUser(id, providerType, providerName, userProfile) { this.id = id; this.loggedInProviderType = providerType; this.loggedInProviderName = providerName; this.profile = userProfile; } Object.defineProperty(StitchAdminUser.prototype, "userType", { get: function () { return this.profile.userType; }, enumerable: true, configurable: true }); Object.defineProperty(StitchAdminUser.prototype, "identities", { get: function () { return this.profile.identities; }, enumerable: true, configurable: true }); return StitchAdminUser; }()); var StitchAdminUserFactory = (function () { function StitchAdminUserFactory() { } StitchAdminUserFactory.prototype.makeUser = function (id, loggedInProviderType, loggedInProviderName, userProfile) { return new StitchAdminUser(id, loggedInProviderType, loggedInProviderName, userProfile); }; return StitchAdminUserFactory; }()); export { StitchAdminUser, StitchAdminUserFactory }; //# sourceMappingURL=StitchAdminUser.js.map