MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / build

Method build

backend/app/models/auth/apikey.py:22–32  ·  view source on GitHub ↗
(row: Dict)

Source from the content-addressed store, hash-verified

20
21 @staticmethod
22 def build(row: Dict):
23 encrypted_apikey = row["encrypted_apikey"]
24 apikey = aes_decrypt(encrypted_apikey)
25 return Apikey(
26 apikey_id=row["apikey_id"],
27 encrypted_apikey=encrypted_apikey,
28 apikey=apikey,
29 name=row["name"],
30 created_timestamp=row["created_timestamp"],
31 updated_timestamp=row["updated_timestamp"],
32 )
33
34 def to_response_dict(self) -> Dict:
35 response_dict = super().to_response_dict()

Callers

nothing calls this directly

Calls 2

aes_decryptFunction · 0.90
ApikeyClass · 0.85

Tested by

no test coverage detected