Cookie authentication.

This commit is contained in:
Mike Cao committed 2020-07-22 15:46:05 -07:00
1 parent 0edf87941a
commit 5219582803
6 files changed
+337 -29

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import { getWebsite, getSession, createSession } from 'lib/db';
import { getCountry, getDevice, getIpAddress, hash, isValidSession } from 'lib/utils';
import { getCountry, getDevice, getIpAddress, isValidSession } from 'lib/utils';
import { hash } from 'lib/crypto';
export default async req => {
const { payload } = req.body;