mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
8 lines
205 B
JavaScript
8 lines
205 B
JavaScript
import { parse } from 'cookie';
|
|
import { verifySecureToken } from './crypto';
|
|
|
|
export default async req => {
|
|
const token = parse(req.headers.cookie)['umami.auth'];
|
|
|
|
return verifySecureToken(token);
|
|
};
|