Skip to content

Instantly share code, notes, and snippets.

@lukejoshuapark
Created August 15, 2022 00:43
Show Gist options
  • Save lukejoshuapark/70bf12967b0fc51edb7fdb419fe33ab2 to your computer and use it in GitHub Desktop.
Save lukejoshuapark/70bf12967b0fc51edb7fdb419fe33ab2 to your computer and use it in GitHub Desktop.
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