Remove appstore web token api

This commit is contained in:
Johannes Zellner
2023-12-02 16:29:46 +01:00
parent 242c091add
commit cca3138f05
5 changed files with 0 additions and 24 deletions

View File

@@ -5,7 +5,6 @@ exports = module.exports = {
getApp,
getAppVersion,
getWebToken,
registerCloudronWithSetupToken,
registerCloudronWithLogin,
getSubscription
@@ -46,13 +45,6 @@ async function getAppVersion(req, res, next) {
next(new HttpSuccess(200, manifest));
}
async function getWebToken(req, res, next) {
const [error, accessToken] = await safe(appstore.getWebToken());
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, { accessToken }));
}
async function registerCloudronWithSetupToken(req, res, next) {
assert.strictEqual(typeof req.body, 'object');

View File

@@ -106,7 +106,6 @@ describe('Appstore Cloudron Registration API - existing user', function () {
expect(scope2.isDone()).to.be.ok();
expect(scope3.isDone()).to.be.ok();
expect(await settings.get(settings.APPSTORE_API_TOKEN_KEY)).to.be('CLOUDRON_TOKEN');
expect(await settings.get(settings.APPSTORE_WEB_TOKEN_KEY)).to.be('SECRET_TOKEN');
nock.cleanAll();
});
@@ -154,7 +153,6 @@ describe('Appstore Cloudron Registration API - new user signup', function () {
expect(scope2.isDone()).to.be.ok();
expect(scope3.isDone()).to.be.ok();
expect(await settings.get(settings.APPSTORE_API_TOKEN_KEY)).to.be('CLOUDRON_TOKEN');
expect(await settings.get(settings.APPSTORE_WEB_TOKEN_KEY)).to.be('SECRET_TOKEN');
});
it('can get subscription', async function () {