오로라 통합형 스킨 패치 가이드
오로라 통합형 (리액트) 스킨 패치 가이드 입니다.
릴리즈 노트
적용 방법
페이지 진입 시 URL 쿼리파라미터에 trackingKey 가 있을 경우 브라우저의 세션 스토리지에 trackingKey를 저장합니다.
// src/index.js
const renderApp = async () => {
// ...
const excludePaths = ['/callback/auth-callback'];
if (!excludePaths.includes(location.pathname)) {
const searchParams = new URLSearchParams(location.search);
const trackingKey = searchParams.get('trackingKey');
const channelType = searchParams.get('channelType');
setTrackingKey(trackingKey);
setChannelType(channelType);
//...
}
}
이 후 로그인 / SNS로그인 시 세션스토리지에 저장된 trackingKey를 API서버에 함께 전달하게 됩니다.
Last updated
Was this helpful?