How can i add role parameter to authenticate_user! callback

How can I add a role parameter to authenticate_user! callback I’m trying to replace authenticate_admin! with a user role of admin instead and I’m gonna remove the admin scaffold