datasquirel/dist/users/validate-token.d.ts
Benjamin Toby a3561da53d Updates
2025-01-10 20:35:05 +01:00

16 lines
506 B
TypeScript

import { DATASQUIREL_LoggedInUser } from "../package-shared/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 {};