Implement redux.
This commit is contained in:
1 parent
9d8a2406e1
commit
5d4ff5cfa4
31 files changed
+341
-85
No files matched your search
+2
-2
@@ -2,7 +2,7 @@ import { getWebsite, getSession, createSession } from 'lib/db';
|
||||
import { getCountry, getDevice, getIpAddress } from 'lib/request';
|
||||
import { uuid, isValidId, verifyToken } from 'lib/crypto';
|
||||
|
||||
export default async req => {
|
||||
export async function verifySession(req) {
|
||||
const { payload } = req.body;
|
||||
const { website: website_uuid, hostname, screen, language, session } = payload;
|
||||
|
||||
@@ -51,4 +51,4 @@ export default async req => {
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user