Skip to content

Commit

Permalink
fix: read query params from frontend correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
oreHGA authored Apr 7, 2024
1 parent caae527 commit 910a1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/neurosity.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports.generateOAuthURL = async (req, res) => {
.createOAuthURL({
clientId: process.env.NEUROSITY_OAUTH_CLIENT_ID,
clientSecret: process.env.NEUROSITY_OAUTH_CLIENT_SECRET,
redirectUri: req.params.redirectUri,
redirectUri: req.query.redirectUri,
responseType: "token",
state: Math.random().toString().split(".")[1], // A random string is required for security reasons
scope: [
Expand Down

0 comments on commit 910a1b2

Please sign in to comment.