datasquirel/dist/package-shared/actions/users/validate-token.d.ts
Benjamin Toby e82bcd0824 Updates
2025-01-25 14:20:25 +01:00

16 lines
494 B
TypeScript

import { DATASQUIREL_LoggedInUser } from "../../types";
type Param = {
token: string;
encryptionKey: string;
encryptionSalt: string;
level?: ("deep" | "normal") | null;
database: string;
};
/**
* Validate Token
* ======================================
* @description This Function takes in a encrypted token and returns a user object
*/
export default function validateToken({ token, encryptionKey, encryptionSalt, }: Param): DATASQUIREL_LoggedInUser | null;
export {};