users = [
auth.ImportUserRecord(
uid='some-uid',
email='us...@example.com',
password_hash=b'password_hash',
password_salt=b'salt'
),
]
# All the parameters below can be obtained from the Firebase Console's "Users"
# section. Base64 encoded parameters must be decoded into raw bytes.
hash_alg = auth.UserImportHash.scrypt(
key=base64.b64decode('base64_secret'),
salt_separator=base64.b64decode('base64_salt_separator'),
rounds=8,
memory_cost=14
)
try:
result = auth.import_users(users, hash_alg=hash_alg)
for err in result.errors:
print('Failed to import user:', err.reason)
except auth.AuthError as error:
print('Error importing users:', error)--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/64f07daa-d20c-4386-bc99-02a59e394782%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| def pytest_addoption(parser): | |
| parser.addoption( | |
| '--cert', action='store', help='Service account certificate file for integration tests.') | |
| parser.addoption( | |
| '--apikey', action='store', help='API key file for integration tests.') |
import firebase_admin
from firebase_admin import credentials
cred = credentials.Certificate("path/to/serviceAccountKey.json")
firebase_admin.initialize_app(cred)
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADfadJ5VgugyDRfHuAQpQu7kyhxxEhe%3DjdnJnGxZgn4%2B_j6Utg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.