mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
8 lines
211 B
JavaScript
8 lines
211 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);
|
|
};
|