Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/API/pm2-plus/PM2IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ var CLIStrategy = require('./auth-strategies/CliAuth')
var WebStrategy = require('./auth-strategies/WebAuth')
const execFile = require('child_process').execFile

const OAUTH_CLIENT_ID_WEB = '138558311'
const OAUTH_CLIENT_ID_CLI = '0943857435'
const OAUTH_CLIENT_ID_WEB = process.env.PM2_OAUTH_CLIENT_ID_WEB || '138558311'
const OAUTH_CLIENT_ID_CLI = process.env.PM2_OAUTH_CLIENT_ID_CLI || '0943857435'

module.exports = class PM2ioHandler {

Expand Down
2 changes: 1 addition & 1 deletion lib/API/pm2-plus/auth-strategies/CliAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = class CliStrategy extends AuthStrategy {
this.authenticated = false
this.callback = cb
this.km = km
this.BASE_URI = 'https://id.keymetrics.io';
this.BASE_URI = process.env.PM2_KEYMETRICS_BASE_URI || 'https://id.keymetrics.io';
}

// so the cli know if we need to tell user to login/register
Expand Down