import pyrebase
import os
import json_utils

# auth to firebase
def create_firebase():
    realpath = os.path.dirname(os.path.realpath(__file__))
    # config has to be an object with creds
    config = json_utils.load_json(realpath, 'creds')
    # service account has to be file path to [credentials].json
    config['serviceAccount'] = realpath + '/service_account.json'
    return pyrebase.initialize_app(config)


6591b503e17d11c50cd0f4586ee07f3311db1575
<mask token>

<mask token>


def create_firebase():
    realpath = os.path.dirname(os.path.realpath(__file__))
    config = json_utils.load_json(realpath, 'creds')
    config['serviceAccount'] = realpath + '/service_account.json'
    return pyrebase.initialize_app(config)

import pyrebase
import os
import json_utils


def create_firebase():
    realpath = os.path.dirname(os.path.realpath(__file__))
    config = json_utils.load_json(realpath, 'creds')
    config['serviceAccount'] = realpath + '/service_account.json'
    return pyrebase.initialize_app(config)

import pyrebase
import os
import json_utils

# auth to firebase
def create_firebase():
    realpath = os.path.dirname(os.path.realpath(__file__))
    # config has to be an object with creds
    config = json_utils.load_json(realpath, 'creds')
    # service account has to be file path to [credentials].json
    config['serviceAccount'] = realpath + '/service_account.json'
    return pyrebase.initialize_app(config)

