The authentication routes must be mounted to your project. This gem includes a route helper for this purpose:
mount_devise_token_auth_for - similar to
devise_for, this method is used to append the routes necessary for user authentication. This method accepts the following arguments:
# config/routes.rbmount_devise_token_auth_for 'User', at: 'auth'
Any model class can be used, but the class will need to include
DeviseTokenAuth::Concerns::User for authentication to work properly.