mirror of
https://github.com/status-im/codimd.git
synced 2025-02-27 15:30:36 +00:00
Remove unused imports, fixing coding style issues.
Signed-off-by: YusukeIwaki <iwaki+git@i3-systems.com>
This commit is contained in:
parent
83fe0815d5
commit
6be31aba9b
@ -4,16 +4,14 @@ const Router = require('express').Router
|
||||
const passport = require('passport')
|
||||
const BitbucketStrategy = require('passport-bitbucket-oauth2').Strategy
|
||||
const config = require('../../../config')
|
||||
const response = require('../../../response')
|
||||
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
|
||||
const { URL } = require('url')
|
||||
|
||||
const bitbucketAuth = module.exports = Router()
|
||||
|
||||
passport.use(new BitbucketStrategy({
|
||||
clientID: config.bitbucket.clientID,
|
||||
clientSecret: config.bitbucket.clientSecret,
|
||||
callbackURL: config.serverURL + '/auth/bitbucket/callback',
|
||||
callbackURL: config.serverURL + '/auth/bitbucket/callback'
|
||||
}, passportGeneralCallback))
|
||||
|
||||
bitbucketAuth.get('/auth/bitbucket', function (req, res, next) {
|
||||
@ -25,6 +23,6 @@ bitbucketAuth.get('/auth/bitbucket', function (req, res, next) {
|
||||
bitbucketAuth.get('/auth/bitbucket/callback',
|
||||
passport.authenticate('bitbucket', {
|
||||
successReturnToOrRedirect: config.serverURL + '/',
|
||||
failureRedirect: config.serverURL + '/'
|
||||
failureRedirect: config.serverURL + '/'
|
||||
})
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user