updated auth function documentation