()
| 68 | }; |
| 69 | |
| 70 | const getAuthReturnPath = (): string => { |
| 71 | const path = window.sessionStorage.getItem(AUTH_RETURN_PATH_KEY); |
| 72 | window.sessionStorage.removeItem(AUTH_RETURN_PATH_KEY); |
| 73 | |
| 74 | return path?.startsWith('/') && !path.startsWith('//') ? path : '/onboarding'; |
| 75 | }; |
| 76 | |
| 77 | function CallbackPage(): ReactElement | null { |
| 78 | const { logEvent } = useLogContext(); |