From fd0051164898d54c6508ef01ba454cf756c5e0ca Mon Sep 17 00:00:00 2001 From: Thomas Burke Date: Tue, 11 Oct 2022 22:10:22 -0700 Subject: [PATCH] password_hash obtained from Firebase Auth backend needs to be base64URL decoded before import to avoid double encoding --- snippets/auth/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/auth/index.py b/snippets/auth/index.py index 9d6f29ebd..ed324e486 100644 --- a/snippets/auth/index.py +++ b/snippets/auth/index.py @@ -571,8 +571,8 @@ def import_with_scrypt(): auth.ImportUserRecord( uid='some-uid', email='user@example.com', - password_hash=b'password_hash', - password_salt=b'salt' + password_hash=base64.urlsafe_b64decode('password_hash'), + password_salt=base64.urlsafe_b64decode('salt') ), ]