mongodb-stitch
Version:
[](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
41 lines • 1.63 kB
JavaScript
import StitchAdminClient from "./StitchAdminClient";
var StitchAdminAuthRoutes = (function () {
function StitchAdminAuthRoutes() {
}
Object.defineProperty(StitchAdminAuthRoutes.prototype, "baseAuthRoute", {
get: function () {
return StitchAdminClient.apiPath + "/auth";
},
enumerable: true,
configurable: true
});
Object.defineProperty(StitchAdminAuthRoutes.prototype, "sessionRoute", {
get: function () {
return this.baseAuthRoute + "/session";
},
enumerable: true,
configurable: true
});
Object.defineProperty(StitchAdminAuthRoutes.prototype, "profileRoute", {
get: function () {
return this.baseAuthRoute + "/profile";
},
enumerable: true,
configurable: true
});
StitchAdminAuthRoutes.prototype.getAuthProviderRoute = function (providerName) {
return this.baseAuthRoute + "/providers/" + providerName;
};
StitchAdminAuthRoutes.prototype.getAuthProviderLoginRoute = function (providerName) {
return this.getAuthProviderRoute(providerName) + "/login";
};
StitchAdminAuthRoutes.prototype.getAuthProviderLinkRoute = function (providerName) {
return this.getAuthProviderLoginRoute(providerName) + "?link=true";
};
StitchAdminAuthRoutes.prototype.getAuthProviderExtensionRoute = function (providerName, path) {
return this.getAuthProviderRoute(providerName) + "/" + path;
};
return StitchAdminAuthRoutes;
}());
export default StitchAdminAuthRoutes;
//# sourceMappingURL=StitchAdminAuthRoutes.js.map