Skip to content

Commit

Permalink
fix: update TOKEN_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
zobweyt committed Nov 14, 2024
1 parent 991fa33 commit 28bd36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/auth/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from fastapi import Depends
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm

TOKEN_URL = "api/v1/auth/login"
TOKEN_URL = "auth/login"

OAUTH2_BEARER = OAuth2PasswordBearer(TOKEN_URL)
OPTIONAL_OAUTH2_BEARER = OAuth2PasswordBearer(TOKEN_URL, auto_error=False)
Expand Down

0 comments on commit 28bd36f

Please sign in to comment.