Correct the api rest authentication [EN/PL]