File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages-exp/auth-exp/src/core Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export async function fetchSignInMethodsForEmail(
35
35
continueUri
36
36
} ;
37
37
38
- const response = await createAuthUri ( auth , request ) ;
38
+ const { signinMethods } = await createAuthUri ( auth , request ) ;
39
39
40
- return response . signinMethods || [ ] ;
41
- }
40
+ return signinMethods || [ ] ;
41
+ }
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
export function getCurrentUrl ( ) : string {
19
- return window ?. location ?. href || self ?. location ?. href || '' ;
19
+ return self ?. location ?. href || '' ;
20
20
}
21
21
22
22
export function isHttpOrHttps ( ) : boolean {
23
23
return getCurrentScheme ( ) === 'http:' || getCurrentScheme ( ) === 'https:' ;
24
24
}
25
25
26
26
export function getCurrentScheme ( ) : string | null {
27
- return location ?. protocol || null ;
28
- }
27
+ return self ?. location ?. protocol || null ;
28
+ }
You can’t perform that action at this time.
0 commit comments