20 lines
638 B
TypeScript
20 lines
638 B
TypeScript
import http from "http";
|
|
import { APILoginFunctionReturn } from "../../types";
|
|
type Param = {
|
|
key?: string;
|
|
database?: string;
|
|
response?: http.ServerResponse;
|
|
request?: http.IncomingMessage;
|
|
level?: "deep" | "normal";
|
|
encryptionKey?: string;
|
|
encryptionSalt?: string;
|
|
additionalFields?: string[];
|
|
encryptedUserString?: string;
|
|
user_id?: string | number;
|
|
};
|
|
/**
|
|
* # Reauthorize User
|
|
*/
|
|
export default function reauthUser({ key, database, response, request, level, encryptionKey, encryptionSalt, additionalFields, encryptedUserString, user_id, }: Param): Promise<APILoginFunctionReturn>;
|
|
export {};
|