Skip to content

Commit

Permalink
Fixed typo in env variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomislaw <[email protected]>
  • Loading branch information
Tomislaw committed Sep 13, 2024
1 parent 8babf7a commit 47e0855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/odr_api/odr_api/api/endpoints/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def ouath2_login_and_signup(

session = user_crud.login_openid_user(db, user)

response = RedirectResponse(url=f"{request.base_url}{settings.OAITH_REDIRECT_PATH}")
response = RedirectResponse(url=f"{request.base_url}{settings.OAUTH2_REDIRECT_PATH}")
response.set_cookie(key="session", value=session.id, httponly=True)

return response
Expand Down
2 changes: 1 addition & 1 deletion modules/odr_core/odr_core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Settings(BaseSettings):
DISCORD_CLIENT_ID: str
DISCORD_CLIENT_SECRET: str

OAITH_REDIRECT_PATH: str
OAUTH2_REDIRECT_PATH: str

# Embedding
CONTENT_EMBEDDING_DIMENSION: int = 512
Expand Down

0 comments on commit 47e0855

Please sign in to comment.