Account settings page.

This commit is contained in:
Mike Cao 2020-08-08 23:48:43 -07:00
parent 58a1be7a30
commit b5cf9f8719
32 changed files with 597 additions and 162 deletions

View file

@ -4,6 +4,11 @@ import { uuid, isValidId, parseToken } from 'lib/crypto';
export async function verifySession(req) {
const { payload } = req.body;
if (!payload) {
throw new Error('Invalid request');
}
const { website: website_uuid, hostname, screen, language, session } = payload;
const token = await parseToken(session);