The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/server/lib/oauth/removeOAuthService.ts

9 lines
328 B

import { ServiceConfiguration } from 'meteor/service-configuration';
export async function removeOAuthService(mainSettingId: string): Promise<void> {
const serviceName = mainSettingId.replace('Accounts_OAuth_Custom-', '');
await ServiceConfiguration.configurations.removeAsync({
service: serviceName.toLowerCase(),
});
}