Last active
December 26, 2023 14:43
-
-
Save johndpope/7c44b3d26e9c021ec3594c7ae948c0f3 to your computer and use it in GitHub Desktop.
Revisions
-
johndpope revised this gist
Dec 26, 2023 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
-
johndpope created this gist
Dec 26, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ import pyrebase def initialize_app(): config = { "apiKey": "AIzaSyBbZ7ruKPdQ3OxhEAl2RjfJbJyDuWrrkxA", "authDomain": "ar-pianist.firebaseapp.com", "databaseURL": "https://ar-pianist.firebaseio.com", "storageBucket": "ar-pianist.appspot.com", "serviceAccount": "path/to/serviceAccountCredentials.json" } firebase = pyrebase.initialize_app(config) # Get a reference to the auth service auth = firebase.auth() # Authenticate a user user = auth.sign_in_with_email_and_password("[email protected]", "yourpassword") print("Successfully authenticated!") def main(): initialize_app() if __name__ == '__main__': main()