public function verifyPasswordGrant($username, $password) { $credentials = ['email' => $username, 'password' => $password]; if ($this->auth->once($credentials)) { return $this->auth->user()->id; } return false; }