Skip to content

Commit

Permalink
feat: native ios support
Browse files Browse the repository at this point in the history
Missing bits that are required to release an ios app.

This is still WIP
  • Loading branch information
idoshamun committed Jan 7, 2025
1 parent fdf3b9f commit 9dd7efb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/shared/src/components/auth/AuthOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ function AuthOptions({
return undefined;
}

// eslint-disable-next-line no-console
console.log('message', e.data);

if (e.data?.flow) {
const connected = await getKratosFlow(AuthFlow.Registration, e.data.flow);

Expand Down
6 changes: 6 additions & 0 deletions packages/webapp/pages/callback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import LogContext from '@dailydotdev/shared/src/contexts/LogContext';
function CallbackPage(): ReactElement {
const { logEvent } = useContext(LogContext);
useEffect(() => {
// eslint-disable-next-line no-console
console.log('CallbackPage');

const urlSearchParams = new URLSearchParams(window.location.search);
const params = Object.fromEntries(urlSearchParams.entries());
const eventKey = params.login
Expand All @@ -22,6 +25,9 @@ function CallbackPage(): ReactElement {
window.location.replace(`/reset-password?${search}`);
return;
}
// eslint-disable-next-line no-console
console.log('postWindowMessage', !!window.opener, eventKey, params);

postWindowMessage(eventKey, params);
window.close();
} catch (err) {
Expand Down

0 comments on commit 9dd7efb

Please sign in to comment.