created library for auth