Created
August 15, 2022 00:43
-
-
Save lukejoshuapark/70bf12967b0fc51edb7fdb419fe33ab2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const axios = require("axios"); | |
const app = express(); | |
app.post("/auth", async (req, res) => { | |
const authResponse = await axios({ | |
method: "POST", | |
url: "https://manage.quicksocket.io/auth", | |
auth: { | |
username: "YOUR_CLIENT_ID", | |
password: "YOUR_CLIENT_SECRET" | |
}, | |
data: { | |
referenceId: "YOUR_USER_ID" | |
} | |
}); | |
res.send(authResponse.data); | |
}); | |
app.listen(5007); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment