add redirect_url at kakao_login
parent
ee6069e5d5
commit
47aca58b02
|
|
@ -163,6 +163,7 @@ class LoginResponse(BaseModel):
|
|||
token_type: str = Field(default="Bearer", description="토큰 타입")
|
||||
expires_in: int = Field(..., description="액세스 토큰 만료 시간 (초)")
|
||||
user: UserBriefResponse = Field(..., description="사용자 정보")
|
||||
redirect_url: str = Field(..., description="로그인 후 리다이렉트할 프론트엔드 URL")
|
||||
|
||||
model_config = {
|
||||
"json_schema_extra": {
|
||||
|
|
@ -177,7 +178,8 @@ class LoginResponse(BaseModel):
|
|||
"email": "user@kakao.com",
|
||||
"profile_image_url": "https://k.kakaocdn.net/dn/.../profile.jpg",
|
||||
"is_new_user": False
|
||||
}
|
||||
},
|
||||
"redirect_url": "http://localhost:3000"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ class AuthService:
|
|||
profile_image_url=user.profile_image_url,
|
||||
is_new_user=is_new_user,
|
||||
),
|
||||
redirect_url="http://localhost:3000",
|
||||
)
|
||||
|
||||
async def refresh_tokens(
|
||||
|
|
|
|||
Loading…
Reference in New Issue