리팩터링 2주차 안건 #242
Replies: 5 comments 8 replies
-
nextConfig에서 rewrites를 설정하면 url의 토큰을 숨길 순 있을 겁니다. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
현재 모든 페이지에서 ssr 에서 토큰을 사용하지 않는다면, 이전의 로컬 스토리지 방식을 사용할 수 있습니다. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
중요
소셜 로그인에 성공하면 oauth/callback 페이지로 리다이렉트 된 후,
쿼리 파라미터로 받아온 토큰을 저장하는 방식을 취하고 있습니다.
이 때, 아주 잠깐이지만 URL에 토큰이 보이고 있습니다.
보안에 문제가 생길 수 있는 요소입니다.
소셜 로그인 성공 시, 토큰을 받아오는 방식을 변경해야 합니다.
일반적으로 토큰과 같이 중요한 정보를 쿼리 파라미터로 넘기지 않는 것으로 알고 있습니다.
Beta Was this translation helpful? Give feedback.
All reactions