Skip to content

Instantly share code, notes, and snippets.

@yoelmacia
Last active December 4, 2019 12:34
Show Gist options
  • Save yoelmacia/3fc06022cd1b68c67661f721bc40762f to your computer and use it in GitHub Desktop.
Save yoelmacia/3fc06022cd1b68c67661f721bc40762f to your computer and use it in GitHub Desktop.
app.get("/user/signin/callback", (req, res) => {
const { query } = req;
const { code } = query;
if (!code) {
return res.send({
success: "false",
message: "Error, no code"
});
}
res.send(code);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment