Closed 1betatsu closed 1 year ago
Just tested this and it appears this behavior is specific to the CSV export, so if you are looking to preserve custom claims for users upon import and export via firebase-tools the JSON file type is a valid workaround as the team looks to fix buggy behavior highlighted here pertaining to CSV file types.
[REQUIRED] Environment info
firebase-tools: 9.10.0
Platform: macOS
[REQUIRED] Test case
Set custom claim
{"admin":true}
by any SDK or something. Export accounts from firebase by firebase auth:export, and import the exported file by firebase auth:import. Export accounts again, then you will find the customAttributes miss double quotations like{admin:true}
.[REQUIRED] Steps to reproduce
Set Custom Claims by Go SDK
Export accounts
Import the exported file.
[REQUIRED] Expected behavior
Custom claims are preserved as
{"admin":true}
[REQUIRED] Actual behavior
Double quotations were disappeared as
{admin:true}