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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -