MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / get_by_email

Method get_by_email

fastapi_users/manager.py:79–92  ·  view source on GitHub ↗

Get a user by e-mail. :param user_email: E-mail of the user to retrieve. :raises UserNotExists: The user does not exist. :return: A user of type models.UP.

(self, user_email: str)

Source from the content-addressed store, hash-verified

77 return user
78
79 async def get_by_email(self, user_email: str) -> models.UP:
80 """
81 Get a user by e-mail.
82
83 :param user_email: E-mail of the user to retrieve.
84 :raises UserNotExists: The user does not exist.
85 :return: A user of type models.UP.
86 """
87 user = await self.user_db.get_by_email(user_email)
88
89 if user is None:
90 raise exceptions.UserNotExists()
91
92 return user
93
94 async def get_by_oauth_account(self, oauth: str, account_id: str) -> models.UP:
95 """

Callers 5

oauth_callbackMethod · 0.95
verifyMethod · 0.95
authenticateMethod · 0.95
_updateMethod · 0.95
createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected