mirror of https://github.com/status-im/codimd.git
refactor: fix lint on lib/web/auth/mattermost/index.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
d8cde49a9c
commit
3be119ded1
|
@ -8,11 +8,11 @@ const OAuthStrategy = require('passport-oauth2').Strategy
|
||||||
const config = require('../../../config')
|
const config = require('../../../config')
|
||||||
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
|
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
|
||||||
|
|
||||||
let mattermostAuth = module.exports = Router()
|
const mattermostAuth = module.exports = Router()
|
||||||
|
|
||||||
const mattermostClient = new MattermostClient()
|
const mattermostClient = new MattermostClient()
|
||||||
|
|
||||||
let mattermostStrategy = new OAuthStrategy({
|
const mattermostStrategy = new OAuthStrategy({
|
||||||
authorizationURL: config.mattermost.baseURL + '/oauth/authorize',
|
authorizationURL: config.mattermost.baseURL + '/oauth/authorize',
|
||||||
tokenURL: config.mattermost.baseURL + '/oauth/access_token',
|
tokenURL: config.mattermost.baseURL + '/oauth/access_token',
|
||||||
clientID: config.mattermost.clientID,
|
clientID: config.mattermost.clientID,
|
||||||
|
|
Loading…
Reference in New Issue