Made getCredentials return an optional tuple of strings instead of a tuple of optional strings.