Implement the initial accesstoken middleware