Create serviceAccountKey.json
Browse files- serviceAccountKey.json +6 -0
    	
        serviceAccountKey.json
    ADDED
    
    | @@ -0,0 +1,6 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            import json
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            firebase_credential = os.getenv("FIREBASE_CREDENTIALS")
         | 
| 4 | 
            +
            with open("serviceAccountKey.json", "w") as f:
         | 
| 5 | 
            +
                f.write(firebase_credential)
         | 
| 6 | 
            +
            cred = credentials.Certificate("serviceAccountKey.json")
         |