Getting Started

First lets initialize an app.

$: npm install @teams.sdk/apps @teams.sdk/api @teams.sdk/common
import { App } from '@teams.sdk/apps';

const clientId = process.env.CLIENT_ID;
const clientSecret = process.env.CLIENT_SECRET;

if (!clientId || !clientSecret) {
    throw new Error('missing environment variables');
}

const app = new App({
    type: 'MultiTenant',
    clientId,
    clientSecret,
});

(async () => {
    await app.start();
})();