UserImportOptions interface

表示 BaseAuth.importUsers() 方法所需的用户导入选项的接口。这用于提供密码哈希算法信息。

签名

export interface UserImportOptions 

属性

属性 类型 说明
哈希 {算法: HashAlgorithmType;键?:缓冲区;saltSeparator?:缓冲区;轮数?: 数字;“memoryCost?:数值”;并行化?: 数字;blockSize?: 数字;generatedKeyLength?: number;} 密码哈希处理信息。

UserImportOptions.hash

密码哈希处理信息。

签名

hash: {
        algorithm: HashAlgorithmType;
        key?: Buffer;
        saltSeparator?: Buffer;
        rounds?: number;
        memoryCost?: number;
        parallelization?: number;
        blockSize?: number;
        derivedKeyLength?: number;
    };