Skip to content

Enforce UserImportOptions when importing users with passwords #577

Closed
@hiranya911

Description

@hiranya911

When importing users with passwords, UserImportOptions must be specified. But the SDK does not check for this condition correctly. Instead it generates the following error when the user records contain passwords and UserImportOptions is not specified:

.../node_modules/firebase-admin/lib/auth/user-import-builder.js:176 if (!validator.isNonNullObject(options.hash)) { TypeError: Cannot read property 'hash' of undefined....

See https://stackoverflow.com/questions/56680087/firebase-admin-import-users-doesnt-work

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions