Answer the question
In order to leave comments, you need to log in
Why is cookie overwritten in laravel?
Hello.
There was an incomprehensible problem, there is a code:
....
//$token = JWTAuth::fromUser($user);
$token = 'tyt_user_token';
return redirect()->route('social.auth.success')->cookie(
'USER_TOKEN', $token, 525600
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question