feat: Enhance OAuth2 flow with temporary code exchange and update cookie handling
This commit is contained in:
@@ -30,8 +30,8 @@ async def get_oauth_service(
|
||||
|
||||
|
||||
async def get_current_user(
|
||||
access_token: Annotated[str | None, Cookie()],
|
||||
auth_service: Annotated[AuthService, Depends(get_auth_service)],
|
||||
access_token: Annotated[str | None, Cookie()] = None,
|
||||
) -> User:
|
||||
"""Get the current authenticated user from JWT token in HTTP-only cookie."""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user