MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_token_by_email

Method get_token_by_email

src/core/database.py:982–990  ·  view source on GitHub ↗

Get token by email

(self, email: str)

Source from the content-addressed store, hash-verified

980 return None
981
982 async def get_token_by_email(self, email: str) -> Optional[Token]:
983 """Get token by email"""
984 async with self._connect() as db:
985 db.row_factory = aiosqlite.Row
986 cursor = await db.execute("SELECT * FROM tokens WHERE email = ?", (email,))
987 row = await cursor.fetchone()
988 if row:
989 return Token(**dict(row))
990 return None
991
992 async def get_all_tokens(self) -> List[Token]:
993 """Get all tokens"""

Callers 1

plugin_update_tokenFunction · 0.80

Calls 2

_connectMethod · 0.95
TokenClass · 0.85

Tested by

no test coverage detected