Updates
This commit is contained in:
parent
09bfbd4214
commit
f181b79ef7
@ -4,9 +4,9 @@ import parseClientCookies from "../utils/parseClientCookies";
|
||||
* ===============================================================================
|
||||
* @description This function uses google identity api to login a user with datasquirel
|
||||
*/
|
||||
export default async function logout(
|
||||
params: { [s: string]: any } | null
|
||||
): Promise<boolean> {
|
||||
export default async function logout(params?: {
|
||||
googleClientId?: any;
|
||||
}): Promise<boolean> {
|
||||
try {
|
||||
const localUser = localStorage.getItem("user");
|
||||
let targetUser;
|
||||
|
6
dist/client/auth/logout.d.ts
vendored
6
dist/client/auth/logout.d.ts
vendored
@ -3,6 +3,6 @@
|
||||
* ===============================================================================
|
||||
* @description This function uses google identity api to login a user with datasquirel
|
||||
*/
|
||||
export default function logout(params: {
|
||||
[s: string]: any;
|
||||
} | null): Promise<boolean>;
|
||||
export default function logout(params?: {
|
||||
googleClientId?: any;
|
||||
}): Promise<boolean>;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "3.5.4",
|
||||
"version": "3.5.5",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
@ -5,6 +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";
|
||||
|
||||
type Param = {
|
||||
encryptedUserString?: string;
|
||||
@ -42,6 +43,7 @@ export default function logoutUser({
|
||||
database,
|
||||
userId: dsqlUserId || process.env.DSQL_API_USER_ID,
|
||||
});
|
||||
|
||||
const authKeyName = cookieNames.keyCookieName;
|
||||
const csrfName = cookieNames.csrfCookieName;
|
||||
const oneTimeCodeName = getAuthCookieNames().oneTimeCodeName;
|
||||
|
Loading…
Reference in New Issue
Block a user