From 76d7f5a2ec4440198780b35f59fce3cca6870ea4 Mon Sep 17 00:00:00 2001 From: Tommaso Comparin <3862206+tcompa@users.noreply.github.com> Date: Fri, 24 Oct 2025 10:19:05 +0200 Subject: [PATCH] Fix `:param verified` in `current_user` and `current_user_token` docstring --- fastapi_users/authentication/authenticator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi_users/authentication/authenticator.py b/fastapi_users/authentication/authenticator.py index bc30a0bf..87e15bf8 100644 --- a/fastapi_users/authentication/authenticator.py +++ b/fastapi_users/authentication/authenticator.py @@ -78,7 +78,7 @@ class Authenticator(Generic[models.UP, models.ID]): Otherwise, an exception is raised. Defaults to `False`. :param active: If `True`, throw `401 Unauthorized` if the authenticated user is inactive. Defaults to `False`. - :param verified: If `True`, throw `401 Unauthorized` if + :param verified: If `True`, throw `403 Forbidden` if the authenticated user is not verified. Defaults to `False`. :param superuser: If `True`, throw `403 Forbidden` if the authenticated user is not a superuser. Defaults to `False`. @@ -124,7 +124,7 @@ class Authenticator(Generic[models.UP, models.ID]): Otherwise, an exception is raised. Defaults to `False`. :param active: If `True`, throw `401 Unauthorized` if the authenticated user is inactive. Defaults to `False`. - :param verified: If `True`, throw `401 Unauthorized` if + :param verified: If `True`, throw `403 Forbidden` if the authenticated user is not verified. Defaults to `False`. :param superuser: If `True`, throw `403 Forbidden` if the authenticated user is not a superuser. Defaults to `False`.