Browse Source

Fixed oauth module issue in backend

Kristian Vos 4 years ago
parent
commit
e67abe27f2
2 changed files with 4 additions and 2 deletions
  1. 2 1
      backend/logic/app.js
  2. 2 1
      backend/logic/spotify.js

+ 2 - 1
backend/logic/app.js

@@ -7,7 +7,8 @@ import cors from "cors";
 import cookieParser from "cookie-parser";
 import bodyParser from "body-parser";
 import express from "express";
-import { OAuth2 } from "oauth";
+import oauth from "oauth";
+const { OAuth2 } = oauth;
 import CoreClass from "../core";
 
 class AppModule extends CoreClass {

+ 2 - 1
backend/logic/spotify.js

@@ -1,6 +1,7 @@
 import config from "config";
 import async from "async";
-import { OAuth2 } from "oauth";
+import oauth from "oauth";
+const { OAuth2 } = oauth;
 
 import CoreClass from "../core";