How to Solve NameError: name 'credentials' is not defined -- firebase_admin
Solution: Import the 'credentials' module
To Solve the error, add the following line to the top of your code.
from firebase_admin import credentials
For more information:
Python firebase_admin credentials