mcordell / grape_token_auth

Token auth for grape apps
MIT License
52 stars 19 forks source link

Override API responses #46

Open evserykh opened 8 years ago

evserykh commented 8 years ago

Hi! I'm using Grape + Grape Token Auth inside an Rails app.

I also use active_model_serializers gem and have an serializer for my User model. API doesn't use the serializer and when I sign in via API I get response containing all user's attributes.

I think there should be a way to override this behavior.

mcordell commented 7 years ago

Hi @evserykh I have a preliminary implementation of this feature in the branch refactor-responses if you would like to check it out and give me feedback, that would be great. Directions for use are in the README there is also a feature spec that corresponds to the behavior you are looking for.