Token authentication library.