Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 9a44e5d

Browse files
committed
update casing
1 parent 45711b0 commit 9a44e5d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exports.creds = {
4646
responseMode: 'form_post',
4747

4848
// Required, the reply URL registered in AAD for your app
49-
redirectUrl: `${process.env.baseProto}://${process.env.baseURL}/auth/openid/return`,
49+
redirectUrl: `${process.env.BASE_PROTO}://${process.env.baseURL}/auth/openid/return`,
5050
// Required if we use http for redirectUrl
5151
allowHttpForRedirectUrl: true,
5252

@@ -97,7 +97,7 @@ exports.creds = {
9797
};
9898

9999
// The url you need to go to destroy the session with AAD
100-
exports.destroySessionUrl = `https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=${process.env.baseProto}://${process.env.baseURL}`
100+
exports.destroySessionUrl = `https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=${process.env.BASE_PROTO}://${process.env.baseURL}`
101101

102102
// If you want to use the mongoDB session store for session middleware, set to true; otherwise we will use the default
103103
// session store provided by express-session.

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ const atob = require('atob');
1212
const config = require('./config');
1313

1414
require('dotenv').config()
15-
const {baseURL, baseProto} = process.env;
15+
const {BASE_PROTO} = process.env;
16+
const baseURL = process.env.BASE_URL;
1617

17-
if (!baseURL || !baseProto) {
18+
if (!baseURL || !BASE_PROTO) {
1819
console.error("ERROR: Cannot find base URL or protocol, exiting...");
1920
return;
2021
} else {
21-
console.log(`Running at ${baseProto}://${baseURL}`)
22+
console.log(`Running at ${BASE_PROTO}://${baseURL}`)
2223
}
2324

2425
console.log("Node env: ", process.env.NODE_ENV)

0 commit comments

Comments
 (0)