I am trying to connect to a eBay store from my Laravel application. When I login to my system and create a store I am redirected to the eBay.com site where I approve the token generation.
Then eBay generates the token and redirects to the callback URL on my site. By that time my site gets me logged out and redirect to the login page.
The Laravel version I am using is 5.3 and following is the piece of code which checks for authentication. Also, I am using the default id column as primary key.
if (Auth::check()) {
$loginUser = Auth::user();
$ebay_sessionId = $loginUser->ebay_session_id;
} else {
return redirect('/login');
}