/** * {@inheritdoc} */ public function handle($user, $countryCode, $phoneNumber) { $user->forceFill(['authy_id' => $this->authy->enable($user->email, $phoneNumber, $countryCode)])->save(); return $user; }
/** * {@inheritdoc} */ public function handle($user) { $this->authy->disable($user->authy_id); $user->forceFill(['authy_id' => null])->save(); return $user; }
/** * {@inheritdoc} */ public function handle($user, $token) { return $this->authy->verify($user->authy_id, $token); }