Dev tokens cannot be saved to a user as they are a temporary resource

Actually im worker in a push notifications for my app, but when I try to save the device tokens to a user display a error dev tokens cannot be saved to a user as they are a temporary resource.

Does somebody know to solve it?

Thanks!