Premise ruby 2.7.5 Rails 6.1.6.1 devise (4.8.1) devise_token_auth (1.2.0)
What I want to achieve When registering and logging in with devise-token-auth, I want to avoid including the id in the response.
Current registration response
{
"status": "success",
"data": {
"id": 1,
"provider": "email",
"uid": "test@example.com",
"allow_password_change": false,
"name": null,
"email": "test@example.com",
"created_at": "2022-08-14T08:20:24.396Z",
"updated_at": "2022-08-14T08:20:24.453Z"
}
}
Ideal response
{
"status": "success",
"data": {
"provider": "email",
"uid": "test@example.com",
"allow_password_change": false,
"name": null,
"email": "test@example.com",
"created_at": "2022-08-14T08:20:24.396Z",
"updated_at": "2022-08-14T08:20:24.453Z"
}
}