Skip to content

Commit da94b0e

Browse files
Fix dotenv.
1 parent 7adf469 commit da94b0e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

authorization-code/client/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require("dotenv").config({ path: "../.env" });
1+
require("dotenv").config();
22
const express = require("express");
33
const crypto = require("crypto");
44

@@ -9,6 +9,7 @@ app.set("view engine", "ejs");
99
app.set("views", "./views");
1010
app.use(express.static("public"));
1111

12+
console.log(process.env.AUTH_SERVER);
1213
const authServer = process.env.AUTH_SERVER;
1314
const clientId = process.env.CLIENT_ID;
1415
const clientSecret = process.env.CLIENT_SECRET;

authorization-code/client/public/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:root {
22
/* Color Variables */
3-
--primary-color: #007bff;
4-
--secondary-color: #6c757d;
3+
--primary-color: #000000;
4+
--secondary-color: #808080;
55
--danger-color: #dc3545;
66
--success-color: #28a745;
77
--white: #ffffff;

authorization-code/provider/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require("dotenv").config({ path: "../.env" });
1+
require("dotenv").config();
22
const bodyParser = require("body-parser");
33
const cors = require("cors");
44
const express = require("express");

0 commit comments

Comments
 (0)