blox-api
Version:
Roblox web API wrapper for Node.js
22 lines (21 loc) • 723 B
TypeScript
export interface IRobloxSession {
cookie: string;
}
/**
* Gets the current CSRF token by sending an invalid request to the sign-out endpoint
*
* @param session Current [[RobloxClient]] session
*/
export declare function getCSRFToken(session: IRobloxSession): Promise<string>;
/**
* Gets the token required to make changes to security settings
*
* @param session Current [[RobloxClient]] session
*/
export declare function getSecuritySettingsToken(session: IRobloxSession): Promise<string>;
/**
* Signs out all other sessions and generates a new .ROBLOSECURITY cookie
*
* @param cookie .ROBLOSECURITY cookie value
*/
export declare function refreshSessionFromCookie(cookie: string): Promise<IRobloxSession>;