Hi Milos,
Ok, what is happening is socialauth.php refreshes and generates a new $token which obviously doesn't match with initial $_GET['token'] from login.php:
login.php (and register.php):
$token = app('register')->socialToken();
ASSession::set('as_social_token', $token);
socialauth.php:
if ($token == '' || $token == null || $token !== ASSession::get('as_social_token')) {
How do i prevent socialauth from generating a new token?
Btw I tested google/twitter by removing $token !== ASSession::get('as_social_token') in socialauth.php:
from:
if ($token == '' || $token == null || $token !== ASSession::get('as_social_token')) {
to:
if ($token == '' || $token == null) {
In this case both google and twitter login correctly...
Thank you for your help,
Roger
Hey Roger,
Awesome, I'm glad you fixed it! :)
- Milos