@sumsub/fisherman
Version:
The Sumsub Fisherman is a powerful tool that helps developers integrate fraud detection capabilities into their applications. With Fisherman, you can easily identify and prevent fraudulent activities within your system, providing a safer and more secure e
15 lines (14 loc) • 594 B
TypeScript
import type { Fisherman, InitParams } from './types';
export declare function init(params: InitParams): Promise<Fisherman>;
export declare function destroy(): void;
/**
* Manually updates the access token.
*
* Use this method when your application already knows
* the token is invalid or has been refreshed (e.g., after a cookie update,
* session renewal, or page visibility change).
*
* @param newToken - The new access token string.
* If omitted, the token will be just removed. No requests will not be retried.
*/
export declare function updateAccessToken(newToken?: string): void;