more error handling in auth.c
port delegations