mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Animated metric card.
This commit is contained in:
parent
f9a6f5f637
commit
da2d383b71
8 changed files with 41 additions and 13 deletions
|
|
@ -2,7 +2,7 @@ import { parse } from 'cookie';
|
|||
import { verifySecureToken } from './crypto';
|
||||
|
||||
export default async req => {
|
||||
const token = parse(req.headers.cookie)['umami.auth'];
|
||||
const token = parse(req.headers.cookie || '')['umami.auth'];
|
||||
|
||||
return verifySecureToken(token);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue