Implementation of new token authentication