Skip to content

Commit ef397a0

Browse files
cslinkhiranya911
authored andcommitted
Specify localId parameter to DeleteAccount as a string, not a JSON array (#125)
1 parent 8b89a9c commit ef397a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase_admin/_user_mgt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def delete_user(self, uid):
320320
"""Deletes the user identified by the specified user ID."""
321321
_Validator.validate_uid(uid)
322322
try:
323-
response = self._request('post', 'deleteAccount', json={'localId' : [uid]})
323+
response = self._request('post', 'deleteAccount', json={'localId' : uid})
324324
except requests.exceptions.RequestException as error:
325325
self._handle_http_error(
326326
USER_DELETE_ERROR, 'Failed to delete user: {0}.'.format(uid), error)

0 commit comments

Comments
 (0)