I'm trying to create a user account on my app via an API. At the top of my API controller I added an exception to doorkeeper_for so that create could be run by somebody with a token:
doorkeeper_for :all, unless: :create
When I call the API though I get a 401 error and a message that the token is invalid. Clearly it's ignoring the unless: exception. Any ideas why?
It seems like you're trying to reproduce some old screencast. Because I cannot find method doorkeeper_for in gem doorkeeper right now. There's only:
before_action :doorkeeper_authorize!, except: :create