MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / login

Method login

src/app/auth/controller/auth_controller.py:28–31  ·  view source on GitHub ↗
(self, req: LoginRequest)

Source from the content-addressed store, hash-verified

26 app.include_router(router=router)
27
28 async def login(self, req: LoginRequest) -> JsonApiResponse:
29 token = await self.container.auth_service().login(email=req.email, password=req.password)
30
31 return await self.response(data=Bearer.from_token(token))
32
33 async def signup(self, req: SignupRequest) -> JsonApiResponse:
34 user = await self.container.auth_service().signup(

Callers

nothing calls this directly

Calls 2

from_tokenMethod · 0.80
responseMethod · 0.45

Tested by

no test coverage detected