Skip to content

Commit

Permalink
change redirect route to official domain and remove secret expose fro…
Browse files Browse the repository at this point in the history
…m err.message
  • Loading branch information
patrickwieth committed May 27, 2024
1 parent b591908 commit 5f4c39f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goat/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const express = require('express');
const axios = require('axios');
const querystring = require('node:querystring');
const querystring = require('node:querystring');

const app = express();
const PORT = process.env.PORT || 31337;
Expand All @@ -13,7 +13,7 @@ const fetchUser = code => {
'client_secret': 'SdY9h2ilQb42AKV3dL8pscd9vcvUc0Bo',
'grant_type': 'authorization_code',
'code': code,
'redirect_uri': 'http://localhost:5173/#/discord',
'redirect_uri': 'https://crowdcontrol.network/#/discord',
'scope': 'identify'
})
let headers = {
Expand Down Expand Up @@ -46,7 +46,7 @@ app.get('/', (req, res) => {
})
.catch(err => {
console.error(err.response)
res.status(500).send(err)
res.status(500).send(err.message)
})

});
Expand Down

0 comments on commit 5f4c39f

Please sign in to comment.