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