Fixed auth api