UNPKG

@netcentric/cm-notify

Version:

Adobe Cloud Manager Pipeline Notifications to Slack, Teams and Email

19 lines (14 loc) 449 B
const { CMUtils, OAuth2Client } = require('@netcentric/cm-notify-core'); class AuthClient { constructor() { const DEFAULT_CONFIG = CMUtils.getDefaultConfig(); this.client = new OAuth2Client(DEFAULT_CONFIG.fromEmail, DEFAULT_CONFIG.dataPath); } getAuthUrl(state) { return this.client.getAuthUrl(state); } async saveTokenFromCode(code) { return this.client.saveTokenFromCode(code); } } module.exports = { AuthClient };