firebase-apparatus
Version:
Lightweight implementation of firebase-tools as a Node module
56 lines (55 loc) • 1.23 kB
JavaScript
// Allowed exported providers
export const ALLOWED_PROVIDERS = [
'google.com',
'facebook.com',
'twitter.com',
'github.com'
];
// Exported keys for <providerUserInfo> users elements
export const ALLOWED_PROVIDERS_KEYS = [
'providerId',
'rawId',
'email',
'displayName',
'photoUrl'
];
// Exported keys from the Google API
export const EXPORT_KEYS = [
'localId',
'email',
'emailVerified',
'passwordHash',
'salt',
'displayName',
'photoUrl',
'lastLoginAt',
'createdAt',
'phoneNumber',
'providerUserInfo'
];
// Renamed keys at export
export const EXPORT_RENAMED_KEYS = {
lastLoginAt: 'lastSignedInAt'
};
// Imported keys for the Google API
export const IMPORT_KEYS = [
'localId',
'email',
'emailVerified',
'passwordHash',
'salt',
'displayName',
'photoUrl',
'lastSignedInAt',
'createdAt',
'phoneNumber',
'providerUserInfo'
];
// Renamed keys at import
export const IMPORT_RENAMED_KEYS = {
lastSignedInAt: 'lastLoginAt'
};
// Keys needing base64 re-encoding
export const BASE64_KEYS = ['passwordHash', 'salt'];
// Maximum size of a batch upload/download for auth accounts
export const MAX_BATCH_SIZE = 1000;