Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit be93ea6

Browse files
committed
change variable scope
1 parent 48b3b9f commit be93ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6-AdvancedScenarios/4-sign-in-hybrid/App/controllers/authController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require("dotenv").config();
22
const msalInstance = require("../msal");
3+
const port = process.env.PORT || 5000;
34

45
exports.loginUser = async (req, res, next) => {
56
const authCodeUrlParameters = {
@@ -24,7 +25,6 @@ exports.loginUser = async (req, res, next) => {
2425
* to be redeemed by your single-page application.
2526
*/
2627
exports.handleRedirectWithCode = (req, res, next) => {
27-
const port = process.env.PORT || 5000;
2828
const tokenRequest = {
2929
code: req.body.code,
3030
redirectUri: process.env.REDIRECT_URI,

0 commit comments

Comments
 (0)