Fixing api auth urls