RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/oauth2-server-config/server/oauth/default-services.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { OAuthApps } from '@rocket.chat/models';

async function run(): Promise<void> {
    if (!(await OAuthApps.findOneById('zapier'))) {
        await OAuthApps.insertOne({
            _id: 'zapier',
            name: 'Zapier',
            active: true,
            clientId: 'zapier',
            clientSecret: 'RTK6TlndaCIolhQhZ7_KHIGOKj41RnlaOq_o-7JKwLr',
            redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/RocketChatDevAPI/',
            _createdAt: new Date(),
            _createdBy: {
                _id: 'system',
                username: 'system',
            },
        });
    }
}

void run();