Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
Update auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NyxiumYuuki committed Jun 6, 2021
1 parent 438f478 commit 4ecd786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/service-privateroom/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ function getSession (req, callback) {
if(typeof req.headers.cookie !== 'undefined'){
request.post({
headers: {'content-type' : 'application/x-www-form-urlencoded'},
url: 'http://127.0.0.1:3000/verify:token',
url: 'http://service-authentication:3000/verify:token',
body: 'sessionid='+req.headers.cookie.replace('SESSIONID=','')
},function (error, response, body) {
console.log("body ; getSession auth private :",body);
//console.log("body ; getSession auth private :",body);
if(typeof body !== 'undefined'){
const bodyJson = JSON.parse(body);
if (bodyJson && bodyJson.status && bodyJson.data) {
Expand Down

0 comments on commit 4ecd786

Please sign in to comment.