Skip to content

ao3_sync.api.resources.AuthApi

Bases: BaseSettings

API for handling AO3 authentication

Parameters:

Name Type Description Default
client AO3ApiClient

AO3ApiClient instance

required

is_authenticated property

Is the session authenticated with AO3?

password property

AO3 password

username property

AO3 username

login(username=None, password=None)

Log into AO3 using the set username and password

Raises:

Type Description
LoginError

If the login fails

set_account(username, password)

Set the username and password for the AO3Session

Parameters:

Name Type Description Default
username str

AO3 username

required
password str

AO3 password

required