🔒 Do not expose application api into (#372)
This commit is contained in:
@@ -23,6 +23,8 @@ export class CompanyApplicationServiceImpl implements TdriveServiceProvider, Ini
|
||||
pk.application_id,
|
||||
context,
|
||||
);
|
||||
//do not expose application secret
|
||||
application.api = null;
|
||||
|
||||
if (!application?.id) {
|
||||
return null;
|
||||
@@ -62,6 +64,8 @@ export class CompanyApplicationServiceImpl implements TdriveServiceProvider, Ini
|
||||
companyApplication.application_id,
|
||||
context,
|
||||
);
|
||||
//do not expose application secret
|
||||
application.api = null;
|
||||
if (application)
|
||||
applications.push({
|
||||
...companyApplication,
|
||||
|
||||
@@ -9,7 +9,7 @@ describe("The /users/quota API", () => {
|
||||
beforeEach(async () => {
|
||||
platform = await init();
|
||||
currentUser = await UserApi.getInstance(platform);
|
||||
}, 30000000);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await platform.tearDown();
|
||||
|
||||
Reference in New Issue
Block a user