You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}.
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}
The text was updated successfully, but these errors were encountered: