@exact-team/nestjs-telegram-oauth2
Version:
telegram oauth2 for nestjs
15 lines (14 loc) • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createTelegramOauth2SdkFactory = createTelegramOauth2SdkFactory;
const telegram_oauth2_1 = require("@exact-team/telegram-oauth2");
const common_1 = require("@nestjs/common");
const logger = new common_1.Logger('telegram-oauth2-nestjs');
function createTelegramOauth2SdkFactory(moduleOptions) {
const telegramOauth2Api = new telegram_oauth2_1.TelegramOAuth2({
botToken: moduleOptions.botToken,
validUntil: moduleOptions.validUntil,
});
logger.log(`TelegramOauth2Api initialized`);
return telegramOauth2Api;
}