Skip to content

Commit

Permalink
added environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta3047 committed Jan 20, 2021
1 parent 6e3c813 commit 2378feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rce-server/server/api/middlewares/isLogged.handler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import jwt from "jsonwebtoken";
import mongoose from "mongoose";
import User from "../../models/user";
const JWT_SECRET = "abcd";
const JWT_SECRET = process.env.JWT_SECRET;

module.exports = (req, res, next) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion rce-server/server/api/services/auth.service.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import jwt from "jsonwebtoken";
import mongoose from "mongoose";
const User = require("../../models/user");
const JWT_SECRET = "abcd";
const JWT_SECRET = process.env.JWT_SECRET;

class AuthService {
async execute(email, name, dp) {
Expand Down
2 changes: 1 addition & 1 deletion rce-server/server/api/services/link.service.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import mongoose from "mongoose";
import crypto from "crypto";
const Link = require("../../models/link");
const BASE_URI = "http://localhost:3000/";
const BASE_URI = process.env.BASE_URI;

class LinkService {
async generate(user) {
Expand Down

0 comments on commit 2378feb

Please sign in to comment.