MCPcopy Create free account
hub / github.com/Tong89/smartNode / authenticate_user

Function authenticate_user

backend/auth.py:37–41  ·  view source on GitHub ↗
(username, password)

Source from the content-addressed store, hash-verified

35
36
37def authenticate_user(username, password):
38 user = DEMO_USERS.get(username)
39 if user and password is not None and user["password"] == password:
40 return user["role"]
41 return None
42
43
44def create_token(sub, role, token_type, ttl):

Callers 1

auth_loginFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected