LordXido's picture
Create codex/auth.py
87a201e verified
Raw
History Blame Contribute Delete
220 Bytes
import os
AUTHORIZED_USERS = set(os.environ.get("AUTHORIZED_USERS", "").split(","))
def verify_user(username):
if username not in AUTHORIZED_USERS:
raise PermissionError("Unauthorized user")
return True