Skip to content

Commit c5d5190

Browse files
committed
chore: use OCP InvalidTokenException instead of the OC one
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent a435e8d commit c5d5190

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

lib/Controller/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use GuzzleHttp\Exception\ClientException;
1515
use GuzzleHttp\Exception\ServerException;
16-
use OC\Authentication\Exceptions\InvalidTokenException;
1716
use OC\Authentication\Token\IProvider;
1817
use OC\User\Session as OC_UserSession;
1918
use OCA\UserOIDC\AppInfo\Application;
@@ -39,6 +38,7 @@
3938
use OCP\AppFramework\Http\RedirectResponse;
4039
use OCP\AppFramework\Http\TemplateResponse;
4140
use OCP\AppFramework\Utility\ITimeFactory;
41+
use OCP\Authentication\Exceptions\InvalidTokenException;
4242
use OCP\Authentication\Token\IToken;
4343
use OCP\DB\Exception;
4444
use OCP\EventDispatcher\IEventDispatcher;

psalm.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<referencedClass name="Symfony\Component\Console\Output\OutputInterface" />
4141
<referencedClass name="Doctrine\DBAL\Types\Type" />
4242
<referencedClass name="OCA\Files\Event\LoadAdditionalScriptsEvent" />
43-
<referencedClass name="OC\Authentication\Exceptions\InvalidTokenException" />
4443
<referencedClass name="GuzzleHttp\Exception\ClientException" />
4544
<referencedClass name="GuzzleHttp\Exception\ServerException" />
4645
<referencedClass name="Symfony\Component\Console\Helper\Table" />

0 commit comments

Comments
 (0)