You should be able to do something like this:
Wor::Authentication::SessionsController.generate_access_token(User.first)
But it fails in the line 33 -> renew_id = token_renew_id, because token_renew_id is a method from: Wor::Authentication::Controller
We shall move this method inside Wor::Authentication::SessionsController, because it's the only place where it's used