Skip to content

Commit 5e1aedc

Browse files
committed
PR Feedback
1 parent 88ecc5c commit 5e1aedc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages-exp/auth-exp/src/core/strategies/email.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function fetchSignInMethodsForEmail(
3535
continueUri
3636
};
3737

38-
const response = await createAuthUri(auth, request);
38+
const { signinMethods } = await createAuthUri(auth, request);
3939

40-
return response.signinMethods || [];
41-
}
40+
return signinMethods || [];
41+
}

packages-exp/auth-exp/src/core/util/location.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
*/
1717

1818
export function getCurrentUrl(): string {
19-
return window?.location?.href || self?.location?.href || '';
19+
return self?.location?.href || '';
2020
}
2121

2222
export function isHttpOrHttps(): boolean {
2323
return getCurrentScheme() === 'http:' || getCurrentScheme() === 'https:';
2424
}
2525

2626
export function getCurrentScheme(): string | null {
27-
return location?.protocol || null;
28-
}
27+
return self?.location?.protocol || null;
28+
}

0 commit comments

Comments
 (0)