feat: Add environment configuration files and update settings for production and development
This commit is contained in:
@@ -207,14 +207,14 @@ async def logout(
|
||||
httponly=True,
|
||||
secure=settings.COOKIE_SECURE,
|
||||
samesite=settings.COOKIE_SAMESITE,
|
||||
domain="localhost", # Match the domain used when setting cookies
|
||||
domain=settings.COOKIE_DOMAIN, # Match the domain used when setting cookies
|
||||
)
|
||||
response.delete_cookie(
|
||||
key="refresh_token",
|
||||
httponly=True,
|
||||
secure=settings.COOKIE_SECURE,
|
||||
samesite=settings.COOKIE_SAMESITE,
|
||||
domain="localhost", # Match the domain used when setting cookies
|
||||
domain=settings.COOKIE_DOMAIN, # Match the domain used when setting cookies
|
||||
)
|
||||
|
||||
return {"message": "Successfully logged out"}
|
||||
@@ -303,7 +303,7 @@ async def oauth_callback(
|
||||
"created_at": time.time(),
|
||||
}
|
||||
|
||||
redirect_url = f"http://localhost:8001/auth/callback?code={temp_code}"
|
||||
redirect_url = f"{settings.FRONTEND_URL}/auth/callback?code={temp_code}"
|
||||
logger.info("Redirecting to: %s", redirect_url)
|
||||
|
||||
return RedirectResponse(
|
||||
|
||||
Reference in New Issue
Block a user