Avoiding to run authorization 2 times