vk-helpers
Version:
Helpers and utilities for creating VK mini apps
12 lines (11 loc) • 376 B
TypeScript
type TParamsForHashing = Record<string, string>;
/**
* Get hash from VK Bridge for secure API calls
* @param {Object} params - Parameters to include in the hash
* @returns {Promise<{sign: string, ts: number}>} Signature and timestamp
*/
export declare const getHashForParamsFromVK: (params: TParamsForHashing) => Promise<{
sign: string;
ts: number;
}>;
export {};