Able to login but unable to view user details or isAuthenticated

I have react app and i able to successfully login using github and return back to the correct location. however i get code and state as url parameters in the redirected URI. when i tried to check the user or isAuthenticated. they return undefined or false. am i missing any config here so when it returns it comes back with the right user details and gets saved in the cookies/localstorage?