fix: some additional style changes
This commit is contained in:
parent
2840b0568e
commit
b82a4cf4f9
13
library.js
13
library.js
@ -27,7 +27,6 @@
|
||||
const nconf = module.parent.require('nconf');
|
||||
const winston = module.parent.require('winston');
|
||||
|
||||
|
||||
/**
|
||||
* REMEMBER
|
||||
* Never save your OAuth Key/Secret or OAuth2 ID/Secret pair in code! It could be published and leaked accidentally.
|
||||
@ -47,7 +46,7 @@
|
||||
* `OAUTH__ID=someoauthid OAUTH__SECRET=youroauthsecret node app.js`
|
||||
*/
|
||||
|
||||
var constants = Object.freeze({
|
||||
const constants = Object.freeze({
|
||||
type: '', // Either 'oauth' or 'oauth2'
|
||||
name: '', // Something unique to your OAuth provider in lowercase, like "github", or "nodebb"
|
||||
oauth: {
|
||||
@ -66,12 +65,10 @@
|
||||
userRoute: '', // This is the address to your app's "user profile" API endpoint (expects JSON)
|
||||
});
|
||||
|
||||
|
||||
var configOk = false;
|
||||
|
||||
|
||||
var OAuth = {}; var passportOAuth; var
|
||||
opts;
|
||||
const OAuth = {};
|
||||
let configOk = false;
|
||||
let passportOAuth;
|
||||
let opts;
|
||||
|
||||
if (!constants.name) {
|
||||
winston.error('[sso-oauth] Please specify a name for your OAuth provider (library.js:32)');
|
||||
|
Loading…
Reference in New Issue
Block a user