Update doc for authentication function.