changing token request to async pattern