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