Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Make it return JSON errors, to better represent on the website #2

Open
todo bot opened this issue Aug 30, 2020 · 0 comments
Open

Make it return JSON errors, to better represent on the website #2

todo bot opened this issue Aug 30, 2020 · 0 comments
Assignees

Comments

@todo
Copy link

todo bot commented Aug 30, 2020

* @todo Make it return JSON errors, to better represent on the website
*/
router.get('/application', async (req, res) => {
if (req.cookies.discord_access_token && req.cookies.discord_refresh_token) {
if (!req.query.client_id || !req.query.redirect_uri || !req.query.scope) return res.status(500).send('Bad Request')


This issue was generated by todo based on a todo comment in d20ac83. It's been assigned to @metehus because they committed the code.
@todo todo bot added the todo 🗒️ label Aug 30, 2020
@todo todo bot assigned metehus Aug 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant