grape_token_auth
grape_token_auth copied to clipboard
Override API responses
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.
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.