Skip to content

Commit

Permalink
Change var to const for Express app
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Raible committed Aug 24, 2022
1 parent dcaef97 commit 88cc6de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions src/add-auth/auth0/express/app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var createError = require('http-errors');
var express = require('express');
const createError = require('http-errors');
const express = require('express');
const { auth } = require('express-openid-connect');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
const path = require('path');
const cookieParser = require('cookie-parser');
const logger = require('morgan');

var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
const indexRouter = require('./routes/index');
const usersRouter = require('./routes/users');

require('dotenv').config()

Expand Down
16 changes: 8 additions & 8 deletions src/add-auth/okta/express/app.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
var createError = require('http-errors');
var express = require('express');
const createError = require('http-errors');
const express = require('express');
const session = require('express-session');
const { ExpressOIDC } = require('@okta/oidc-middleware');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
const path = require('path');
const cookieParser = require('cookie-parser');
const logger = require('morgan');

var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
const indexRouter = require('./routes/index');
const usersRouter = require('./routes/users');

require('dotenv').config()

var app = express();
const app = express();
const oidc = new ExpressOIDC({
issuer: process.env.OIDC_ISSUER,
client_id: process.env.OIDC_CLIENT_ID,
Expand Down

0 comments on commit 88cc6de

Please sign in to comment.