diff --git a/src/Auth/Api/Controllers/AuthController.php b/src/Auth/Api/Controllers/AuthController.php index 0c61f1b..c41e441 100644 --- a/src/Auth/Api/Controllers/AuthController.php +++ b/src/Auth/Api/Controllers/AuthController.php @@ -6,14 +6,12 @@ use Aphiria\Api\Controllers\Controller; use Aphiria\Authentication\Attributes\Authenticate; -use Aphiria\Authentication\AuthenticationSchemeNotFoundException; use Aphiria\Authentication\IAuthenticator; -use Aphiria\Authentication\NotAuthenticatedException; -use Aphiria\Authentication\UnsupportedAuthenticationHandlerException; use Aphiria\Net\Http\IResponse; use Aphiria\Net\Http\Response; use Aphiria\Routing\Attributes\Post; use Aphiria\Routing\Attributes\RouteGroup; +use Exception; /** * Defines the auth controller @@ -32,7 +30,7 @@ public function __construct(private readonly IAuthenticator $authenticator) * Attempts to log in a user with basic auth and sets an auth token cookie on success * * @return IResponse The login attempt response - * @throws NotAuthenticatedException|AuthenticationSchemeNotFoundException|UnsupportedAuthenticationHandlerException Thrown if there was an error with authentication + * @throws Exception Thrown if there was an error with authentication */ #[Post('/login'), Authenticate('basic')] public function logIn(): IResponse @@ -49,7 +47,7 @@ public function logIn(): IResponse * Logs out the user * * @return IResponse The logout response - * @throws AuthenticationSchemeNotFoundException|UnsupportedAuthenticationHandlerException Thrown if there was an issue with authentication + * @throws Exception Thrown if there was an issue with authentication */ #[Post('/logout')] public function logOut(): IResponse