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
Post a Comment