Cookie authentication.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user