Modularize auth methods