In this section, we will build the auth module.
Before going further, we need to set up a few things:
auth folder.auth folder, create constants, data_model, functions, helpers, and ports.constants folder, create files roles.py, teams.py, and __init__.py.Now, open roles.py and add the following code:
ROLES = {
"EMPLOYEE": {"NAME": "employee", "SCORE": 1},
"ADMIN": {"NAME": "admin", "SCORE": 99},
}
Open teams.py and add the following code:
TEAMS = {"MARKETING": {"NAME": "marketing"}, "SALES": {"NAME": "sales"}}

Add the following code in __init__.py:
from .roles import *
from .teams import *
With this code, the import errors for ROLES and TEAMS in modules/pcustomer-management/ports are resolved.

Now that the pre-setup is complete, we can proceed to build this module step by step, just like we did for the potential customer management module.