mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 01:35:17 +01:00
13 lines
261 B
JavaScript
13 lines
261 B
JavaScript
|
import { verifySecureToken } from 'lib/crypto';
|
||
|
|
||
|
export default async (req, res) => {
|
||
|
const { token } = req.body;
|
||
|
|
||
|
try {
|
||
|
const payload = await verifySecureToken(token);
|
||
|
res.status(200).send(payload);
|
||
|
} catch {
|
||
|
res.status(400).send('');
|
||
|
}
|
||
|
};
|