Add base auth functions