I am also encountering this problem. I tested on Postman and I can see the refresh_token into the cookie so I can get it through request()->cookie('cookie')
But on my browser, the refresh_token cookie is not existing. I already added AddQueuedCookiesToResponse in Kernel.php and tried to except the cookie in EncryptCookies but still, refresh_token is not existing.
As the refresh_token is set to be HttpOnly cookie, you can't access it or see it in the browser cookies. The refresh_token is used only to renew the access_token when it expires.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi @stefan
I am also encountering this problem. I tested on Postman and I can see the
refresh_token
into the cookie so I can get it throughrequest()->cookie('cookie')
i.imgur.com/YxbCYde.png
But on my browser, the
refresh_token
cookie is not existing. I already addedAddQueuedCookiesToResponse
in Kernel.php and tried to except the cookie inEncryptCookies
but still,refresh_token
is not existing.i.imgur.com/WsGiaYi.png
Did I miss anything? THanks in advance.
As the
refresh_token
is set to beHttpOnly
cookie, you can't access it or see it in the browser cookies. Therefresh_token
is used only to renew theaccess_token
when it expires.