Skip to content

Commit

Permalink
restore auto error on oauth scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebyshev committed Jan 12, 2024
1 parent cc83f93 commit 021c858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shvatka/api/dependencies/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</html>
"""
logger = logging.getLogger(__name__)
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token", auto_error=False)
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token")


def get_current_user() -> dto.User:
Expand Down

0 comments on commit 021c858

Please sign in to comment.