/** * Recent / Providers * @param $provider * @param $data */ public function setAuthData($provider, $data) { $this->session->set('__sp_auth.r', $provider); $this->session->set('__sp_auth.p.' . $provider, array_merge(['provider' => $provider], $data)); $this->session->save(); }