Added auth class.
Auth class is now a function.