n-digit-token
Version:
Cryptographically secure pseudo-random token of n digits
10 lines (9 loc) • 387 B
TypeScript
import type { Options } from './types';
/**
* Handle token return type and format based on user options.
* @param {bigint} secureBigIntToken token
* @param {number} length
* @param {Options} [options]
* @return {string|number|bigint} formatted token
*/
export declare const handleOptions: (secureBigIntToken: bigint, length: number, options?: Options) => string | number | bigint;