Login/logout process.

This commit is contained in:
Mike Cao 2020-07-25 16:31:07 -07:00
parent 0f0b1e39e7
commit f947c7770b
10 changed files with 91 additions and 58 deletions

View file

@ -5,7 +5,7 @@ export default async (req, res) => {
try {
const payload = await verifySecureToken(token);
res.status(200).send(payload);
res.status(200).json(payload);
} catch {
res.status(400).end();
}