Using replit database on a different account doesnt work
I am trying to make an email verification system (which works) on a different account, but I cant hide the email and password without being interrupted by this error.
TypeError: 'NoneType' object is not subscriptable
The code I am using, and tried.
Replit.DB
replit.db['email'] = ""
replit.db['password'] = ""
OS
email = os.environ['EMAIL']
password = os.environ['PASSWORD']
Please add more information, since it's vague where the error is coming from. Do you have a repl or a code snippet to share?
this has happened to me when REPLIT_DB_URL isn't set - when you're using the repl without logging in, but I don't know why using a different account wouldn't work
Yes, replit_db does not work if you are not logged in. You could try using repl auth or identity to verify that a user is logged on.