Not a Function Error while Calling api.accessToken.addScope Inside an Action