mcordell / grape_devise_token_auth

Grape compatibility for devise_token_auth + devise + rails setup
MIT License
41 stars 29 forks source link

Fix another model name auth headers #23

Open mareklipka opened 3 years ago

mareklipka commented 3 years ago

The auth headers was not present in response if resource name was something different than user. Now it fetches resource class from options in Middleware and AuthHeaders use it in initialize.