Last active
December 4, 2019 12:34
-
-
Save yoelmacia/3fc06022cd1b68c67661f721bc40762f 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
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