Updates
This commit is contained in:
@@ -5,7 +5,7 @@ import EJSON from "../package-shared/utils/ejson";
|
||||
import { deleteAuthFile } from "../package-shared/functions/backend/auth/write-auth-files";
|
||||
import parseCookies from "../package-shared/utils/backend/parseCookies";
|
||||
import { DATASQUIREL_LoggedInUser } from "../package-shared/types";
|
||||
import grabKeys from "../package-shared/utils/grab-keys";
|
||||
import grabHostNames from "../package-shared/utils/grab-host-names";
|
||||
|
||||
type Param = {
|
||||
encryptedUserString?: string;
|
||||
@@ -41,9 +41,11 @@ export default function logoutUser({
|
||||
* @description Check Encryption Keys
|
||||
*/
|
||||
try {
|
||||
const { user_id } = grabHostNames({ userId: dsqlUserId });
|
||||
|
||||
const cookieNames = getAuthCookieNames({
|
||||
database,
|
||||
userId: dsqlUserId || process.env.DSQL_API_USER_ID,
|
||||
userId: user_id,
|
||||
});
|
||||
|
||||
if (debug) {
|
||||
|
||||
Reference in New Issue
Block a user