ruby on rails - Custom user attributes with devise_token_auth -


i have created new api using rails/edge , i'm using devise devise_token_auth has generated me user model.

my question this, after migrating , adding new attributes user model how return in json response, being generated devise_token_auth?

as mentioned in comment above. far best solution create separate userdetails model, serialize make separate call after auth populate user data.

which seem quite nice keeps auth clean.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -