You can store the credentials which are in the JSON file in Secret Manager and retrieve the dictionary from there and pass it in the credentials() method for Authenticating.
cred = credentials.Certificate(firebase_service_key)
Here firebase_service_key is a dictionary and it is read from the Secret Manager.