sounds.auth

Classes

AuthService

Service to handle authentication with BBC Sounds.

Module Contents

class sounds.auth.AuthService(cookie_store: sounds.cookies.CookieStore, on_login_success=None, *args, **kwargs)

Bases: sounds.base.Base

Service to handle authentication with BBC Sounds.

ERROR_CLASS = 'sb-form-message--error'
EMAIL_ERROR_MSG = 'We don’t recognise that email or username. You can try again or register for an account'
PASSWORD_ERROR_MSG = 'That password isn’t right. You can try again or reset your password'
PASSWORD_LENGTH_MSG = 'Sorry, that password is too short. It needs to be eight characters or more.'
user_info = None
debug_login = False
async login(username: str, password: str) bool
async renew_session() bool

Renew a session which has expired, but user is logged in.