Get username and password from credentials.
:param credentials: BasicAuth for username/password or AccessToken for JWT token. :type credentials: BasicAuth | AccessToken :raises ValueError: User name not found in JWT token header :raises TypeError: Invalid credentials type :return: Tuple of username and password strings (plaintext). :rtype: tuple[str, str]