Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def async_login(
email: str,
password: str,
*,
client_uuid: Optional[str] = None,
locale: str = DEFAULT_LOCALE,
session: Optional[ClientSession] = None,
) -> Client:
"""Return an authenticated client."""
client = Client(
email, password, client_uuid=client_uuid, locale=locale, session=session
)
await client.async_init()
return client