Flexible API Authentication

Hi Guys, I’m new to Rails. I want a api authentication system with high flexibility I mean i be able to change lookup fields and fully customize the user model us there any gem?(I have checked devise-token-auth which wasn’t flexible)