16 lines
494 B
TypeScript
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 {};
|