Skip to content

cloudfire-auth / UserImportOptions

Interface: UserImportOptions

Defined in: types/firebase-admin/user-import.ts:59

Interface representing the user import options needed for CloudFireAuth.importUsers method. This is used to provide the password hashing algorithm information.

Properties

hash

hash: object

Defined in: types/firebase-admin/user-import.ts:63

The password hashing information.

algorithm

algorithm: HashAlgorithmType

The password hashing algorithm identifier. The following algorithm identifiers are supported: SCRYPT, STANDARD_SCRYPT, HMAC_SHA512, HMAC_SHA256, HMAC_SHA1, HMAC_MD5, MD5, PBKDF_SHA1, BCRYPT, PBKDF2_SHA256, SHA512, SHA256 and SHA1.

blockSize?

optional blockSize: number

The block size (normally 8) of the hashing algorithm. Required for the STANDARD_SCRYPT algorithm.

derivedKeyLength?

optional derivedKeyLength: number

The derived key length of the hashing algorithm. Required for the STANDARD_SCRYPT algorithm.

key?

optional key: Uint8Array<ArrayBufferLike>

The signing key used in the hash algorithm in buffer bytes. Required by hashing algorithms SCRYPT, HMAC_SHA512, HMAC_SHA256, HAMC_SHA1 and HMAC_MD5.

memoryCost?

optional memoryCost: number

The memory cost required for SCRYPT algorithm, or the CPU/memory cost. Required for STANDARD_SCRYPT algorithm.

parallelization?

optional parallelization: number

The parallelization of the hashing algorithm. Required for the STANDARD_SCRYPT algorithm.

rounds?

optional rounds: number

The number of rounds for hashing calculation. Required for SCRYPT, MD5, SHA512, SHA256, SHA1, PBKDF_SHA1 and PBKDF2_SHA256.

saltSeparator?

optional saltSeparator: Uint8Array<ArrayBufferLike>

The salt separator in buffer bytes which is appended to salt when verifying a password. This is only used by the SCRYPT algorithm.