throwing error when no authentication uri generated