Remove appstore web token api
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user