Cookie authentication.

This commit is contained in:
Mike Cao 2020-07-22 15:46:05 -07:00
parent 0edf87941a
commit 5219582803
6 changed files with 337 additions and 29 deletions

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;