So the problem was when i not headed anywhere just back to / but / of the router. My app is under some path on the server for example http://example.com/react/ loginCallback was redirecting to http:/example.com/ where some other stuff is being served.
Solved it by configuring Security using AuthService instance and then calling .setFromUri(ulr)
Anyway thanks for help !