Cache access token if Rails detected