Account settings page.
This commit is contained in:
1 parent
58a1be7a30
commit
b5cf9f8719
32 files changed
+597
-162
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user