Authentication token support in library